Support Rails 4.2 and Ruby 2.2

Was noticed by this issue: https://github.com/railsware/js-routes/issues/139