Update with Rails 4 support.