Updates for Rails 4.