public
Description: StripAttributes is a Rails plugin that automatically strips all ActiveRecord model attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.
Homepage: http://stripattributes.rubyforge.org/
Clone URL: git://github.com/rmm5t/strip_attributes.git
Click here to lend your support to: strip_attributes and make a donation at www.pledgie.com !
strip_attributes / init.rb
100644 3 lines (2 sloc) 0.07 kb
1
2
3
require 'strip_attributes'
ActiveRecord::Base.extend(StripAttributes)