Rails 4

* [x] add support for Rails 4