binarylogic / coercionlogic

Coerce blank strings into nil objects for ActiveRecord

This URL has Read+Write access

name age message
file .document Wed Aug 12 20:03:59 -0700 2009 Initial commit to coercionlogic. [binarylogic]
file .gitignore Wed Aug 12 20:03:59 -0700 2009 Initial commit to coercionlogic. [binarylogic]
file LICENSE Wed Aug 12 20:03:59 -0700 2009 Initial commit to coercionlogic. [binarylogic]
file README.rdoc Thu Aug 13 11:13:42 -0700 2009 update readme [binarylogic]
file Rakefile Thu Aug 13 11:13:42 -0700 2009 update readme [binarylogic]
directory lib/ Wed Aug 12 20:13:14 -0700 2009 Initial commit [binarylogic]
directory spec/ Wed Aug 12 20:13:14 -0700 2009 Initial commit [binarylogic]
README.rdoc

Coercionlogic

Extremely simple module to coerce blank strings into nil objects for ActiveRecord to create consistency in your database data. It keeps you from having to write query conditions like:

  name = '' OR name IS NULL

This library is part of my attempt to start pulling out common code in my applications and sharing them via gems.

Copyright © 2008 Ben Johnson of Binary Logic, released under the MIT license