Support for Rails 4 (fixes #34)