Coercion
An ActiveRecord plugin to strip string values and coerce empty strings to nil values on assignment.
Installation
Add the coercion
gem to your Gemfile
:
gem 'coercion'
Then run bundle install
to install the gem.
Copyright
Copyright © 2008-2012 Tyler Hunt. See LICENSE for details.