public
Description: When Active Record objects are saved from a form, empty fields are saved as empty strings instead of nil. This kills most validations.
Clone URL: git://github.com/collectiveidea/clear_empty_attributes.git
Click here to lend your support to: clear_empty_attributes and make a donation at www.pledgie.com !
name age message
file README Mon Feb 05 06:56:28 -0800 2007 the newlines must die [brandon]
file init.rb Mon Feb 05 06:55:52 -0800 2007 oops [brandon]
directory lib/ Mon Jun 16 04:17:06 -0700 2008 only set to nil if the value is a String and it... [brandon]
README
When AR objects are saved from a form, empty fields are saved as empty strings instead of nil.  This kills most 
validations.

This plugin simple defines a before_validation callback that sets empty attributes to nil.