RubyGems.org

attr_cleaner

0.1.1

Strips spaces from attributes, and sets empty strings to nil. Can be used with Rails 3, in any ActiveRecord project, or with other ORMs that define write_attribute.

installgem install attr_cleaner
Authors

Thomas Drake-Brockman

10,953 total downloads 2,086 for this version
Owners

Fdf9115de14f9ed00096f96dc013aa8a

Gemfile
gem 'attr_cleaner', '~> 0.1.1'
Versions
  1. 0.1.1 December 31, 2010 (6.5 KB)
  2. 0.1.0 December 31, 2010 (6 KB)
  3. 0.0.4 December 30, 2010 (6 KB)
  4. 0.0.3 December 29, 2010 (6 KB)
  5. 0.0.2 December 29, 2010 (5.5 KB)
Show all versions (6 total)
Runtime Dependencies
  1. activesupport ~> 3.0.0