Rails 4.1 compatibility

Looses backwards compadibility with Rails 2.3, and maybe 3.X as well