Rails 41 fix