aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_many_association.rb
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-08-16 22:55:01 -0700
committerGodfrey Chan <godfreykfc@gmail.com>2014-08-16 23:09:10 -0700
commit008f3da3835e47f719ba6820703ba404ff363640 (patch)
treeb7d1a8154839de05eedb015e6d11e2b83c15e010 /activerecord/lib/active_record/associations/has_many_association.rb
parent877ea784e4cd0d539bdfbd15839ae3d28169b156 (diff)
downloadrails-008f3da3835e47f719ba6820703ba404ff363640.tar.gz
rails-008f3da3835e47f719ba6820703ba404ff363640.tar.bz2
rails-008f3da3835e47f719ba6820703ba404ff363640.zip
Don't expose these new APIs yet (added in 877ea78 / #16189)
WARNING: don't use them! They might change or go away between future beta/RC/ patch releases! Also added a CHANGELOG entry for this.
Diffstat (limited to 'activerecord/lib/active_record/associations/has_many_association.rb')
-rw-r--r--activerecord/lib/active_record/associations/has_many_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb
index cf59699228..1413efaf7f 100644
--- a/activerecord/lib/active_record/associations/has_many_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_association.rb
@@ -103,7 +103,7 @@ module ActiveRecord
if has_cached_counter?(reflection)
counter = cached_counter_attribute_name(reflection)
owner[counter] += difference
- owner.clear_attribute_changes([counter]) # eww
+ owner.send(:clear_attribute_changes, counter) # eww
end
end