aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_many_through_association.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-25 17:12:19 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-25 17:12:19 -0700
commit89397d09ebb7ca4089f17820d05d5eb223913652 (patch)
treea3836aedbeba1670571ebe6cbc14b79c921c0068 /activerecord/lib/active_record/associations/has_many_through_association.rb
parent450743cf56125d153b64c3509e75b0e4f86851d1 (diff)
downloadrails-89397d09ebb7ca4089f17820d05d5eb223913652.tar.gz
rails-89397d09ebb7ca4089f17820d05d5eb223913652.tar.bz2
rails-89397d09ebb7ca4089f17820d05d5eb223913652.zip
Prefix internal method with _
This will avoid naming clash with user defined methods
Diffstat (limited to 'activerecord/lib/active_record/associations/has_many_through_association.rb')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb
index 455a540bdb..57affce4f7 100644
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -159,7 +159,7 @@ module ActiveRecord
count = scope.destroy_all.length
else
scope.to_a.each do |record|
- record.run_destroy_callbacks
+ record._run_destroy_callbacks
end
arel = scope.arel