Another fix for Rails 4