Support for Rails 4