Possible fix for Rails 4.