Over time, we're upgrading pieces of our Rails 3.2.x application to be Rails 4 compatible. For example, any of our new code is written using strong parameters instead of attr_accessible
. We'd like to take a similar approach for features like ActiveRecord's none
and find_or_create_by
so we don't have to change much code when we finish our upgrade to Rails 4.
Is there a Rails 4 backports library that can assist us with this? We currently have a collection of monkey patches, but it seems like there would be a gem for this.