where_lower 0.3.0 released
I just released where_lower 0.3.0.
It helps you changing code like:
Person.where('lower(name) = ?', params[:name].downcase)
to this:
Person.where_lower(name, params[:name].downcase)
It doesn’t have the ActiveRecord magic association reflection thing though. It’s so painful reading through the AR source code. If someone really wants it please open an issue or even a PR :)
Post a comment