Rails 4.2 compatibility

See #9