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 -v 1.4.1
Authors

Ryan McGeary

116,315 total downloads 1,858 for this version
Owners

0f5f0ea6a2dc7ed3cb5830377a4fe7e2

Licenses

MIT

Gemfile
gem 'strip_attributes', '~> 1.4.1'
Versions
  1. 1.5.1 March 25, 2014 (9.5 KB)
  2. 1.5.0 January 16, 2014 (9.5 KB)
  3. 1.4.4 July 18, 2013 (8.5 KB)
  4. 1.4.3 April 22, 2013 (7.5 KB)
  5. 1.4.2 March 24, 2013 (7.5 KB)
Show all versions (16 total)
Runtime Dependencies
  1. activemodel ~> 3.0