0.0
No commit activity in last 3 years
No release in over 3 years
Coerce blank strings into nil objects for ActiveRecord
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 1.3.1

Runtime

 Project Readme

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