aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/nested_attributes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/nested_attributes.rb')
-rw-r--r--activerecord/lib/active_record/nested_attributes.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb
index 682b404060..2cbef2425b 100644
--- a/activerecord/lib/active_record/nested_attributes.rb
+++ b/activerecord/lib/active_record/nested_attributes.rb
@@ -520,12 +520,12 @@ module ActiveRecord
def check_record_limit!(limit, attributes_collection)
if limit
limit = case limit
- when Symbol
- send(limit)
- when Proc
- limit.call
+ when Symbol
+ send(limit)
+ when Proc
+ limit.call
else
- limit
+ limit
end
if limit && attributes_collection.size > limit