Compatibility with Rails 4.0