Fix to allow code to work with Rails 3 and Rails 4

This small change allows the library to be used with Rails 4.0 and continue to work with Rails 3.0