mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use ! instead of not
This commit is contained in:
parent
894fd28859
commit
296e5c38f1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue