Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Feb 5, 2007
1 parent 05118be commit 67cb878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ClearEmptyAttributes
====================
When AR objects are saved from a form, empty fields are saved as empty
strings instead of nil. This kills most validations.

Description goes here
This plugin simple defines a before_validation callback that sets empty attributes to nil.
4 changes: 1 addition & 3 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@

When AR objects are saved from a form, empty fields are saved as empty
strings instead of nil. This kills most validations.
require 'clear_empty_attributes'

0 comments on commit 67cb878

Please sign in to comment.