aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-11-11 15:24:49 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-11 15:24:49 -0200
commit296e5c38f1b501d39c247f5b7daccedded4e497b (patch)
tree78a716debfbae66f78dd049d4e1829ee0eab65e1 /activerecord
parent894fd288596b005148c3882e6431f6453d198101 (diff)
downloadrails-296e5c38f1b501d39c247f5b7daccedded4e497b.tar.gz
rails-296e5c38f1b501d39c247f5b7daccedded4e497b.tar.bz2
rails-296e5c38f1b501d39c247f5b7daccedded4e497b.zip
Use ! instead of not
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/nested_attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb
index bbce6df98f..fb48459b6f 100644
--- a/activerecord/lib/active_record/nested_attributes.rb
+++ b/activerecord/lib/active_record/nested_attributes.rb
@@ -323,7 +323,7 @@ module ActiveRecord
(options[:update_only] || record.id.to_s == attributes['id'].to_s)
assign_to_or_mark_for_destruction(record, attributes, options[:allow_destroy]) unless call_reject_if(association_name, attributes)
- elsif not attributes['id'].blank?
+ elsif !attributes['id'].blank?
raise_nested_attributes_record_not_found(association_name, attributes['id'])
elsif !reject_new_record?(association_name, attributes)