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.3.0
Authors

Ryan McGeary

88,983 total downloads 3,514 for this version
Owners

0f5f0ea6a2dc7ed3cb5830377a4fe7e2

Gemfile
gem 'strip_attributes', '~> 1.3.0'
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