RubyGems.org

Often times you'll end up with empty strings where you really want nil at the database level. This plugin automatically converts blanks to nil and is configurable.

installgem install nilify_blanks
Authors

Ben Hughes

56,262 total downloads 5,144 for this version
Owners

92772ff5353c89d9bd10f8e334161e16

Gemfile
gem 'nilify_blanks', '~> 1.1.0'
Versions
  1. 1.1.0 July 4, 2014 (11 KB)
  2. 1.0.3 December 9, 2013 (9.5 KB)
  3. 1.0.2 August 26, 2013 (9.5 KB)
  4. 1.0.1 May 21, 2013 (8 KB)
  5. 1.0.0 October 13, 2010 (7.5 KB)
Ruby Dependency
  1. >= 0