Another Rails 4 fix