Adds changes needed for Rails 4.