Makes the gem compatible with Rails 4.0 beta