RubyGems.org

StripAttributes automatically strips all ActiveRecord model attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.

installgem install strip_attributes
Authors

Ryan McGeary

34,746 total downloads 1,463 for this version
Owners

0f5f0ea6a2dc7ed3cb5830377a4fe7e2

Licenses

MIT

Gemfile
gem "strip_attributes", "~> 1.4.3"
Versions
  1. 1.4.3 April 22, 2013
  2. 1.4.2 March 24, 2013
  3. 1.4.1 March 13, 2013
  4. 1.4.0 March 8, 2013
  5. 1.3.0 February 6, 2013
Show all versions (13 total)
Runtime Dependencies
  1. activemodel < 5.0, >= 3.0