diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-06-16 10:30:46 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-06-16 10:30:46 +0100 |
commit | d5812d4f687c1dbe5513fde85969eecb0a87a9b8 (patch) | |
tree | ad940008d4fea55aa8bc54e466ddd1193e188923 /lib/strip_attributes | |
parent | 170b2508e9e07e4b430d25c6f4d7ae3930caa07d (diff) | |
parent | 42870985da06418461c847563fa860c11b4094a1 (diff) |
Merge branch 'replace-xxx-todo' into rails-3-develop
Diffstat (limited to 'lib/strip_attributes')
-rw-r--r-- | lib/strip_attributes/strip_attributes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strip_attributes/strip_attributes.rb b/lib/strip_attributes/strip_attributes.rb index 130d10185..12350277d 100644 --- a/lib/strip_attributes/strip_attributes.rb +++ b/lib/strip_attributes/strip_attributes.rb @@ -1,6 +1,6 @@ module StripAttributes # Strips whitespace from model fields and leaves nil values as nil. - # XXX this differs from official StripAttributes, as it doesn't make blank cells null. + # TODO: this differs from official StripAttributes, as it doesn't make blank cells null. def strip_attributes!(options = nil) before_validation do |record| attribute_names = StripAttributes.narrow(record.attribute_names, options) |