RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

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

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!