aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-14 17:47:43 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-14 17:47:43 -0700
commit4bf10fcdee37ca4f16e04e26b7720568b14b0e4b (patch)
treec17283c5db75c541252c0a3bd59ee112eb52b70e /activerecord/lib/active_record
parent6a2b43dccdef817d263c9e578866f151d62fe59c (diff)
downloadrails-4bf10fcdee37ca4f16e04e26b7720568b14b0e4b.tar.gz
rails-4bf10fcdee37ca4f16e04e26b7720568b14b0e4b.tar.bz2
rails-4bf10fcdee37ca4f16e04e26b7720568b14b0e4b.zip
remove delegation to `chain`
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency/join_association.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency/join_association.rb b/activerecord/lib/active_record/associations/join_dependency/join_association.rb
index 13e3cf8012..d83c01c819 100644
--- a/activerecord/lib/active_record/associations/join_dependency/join_association.rb
+++ b/activerecord/lib/active_record/associations/join_dependency/join_association.rb
@@ -15,8 +15,6 @@ module ActiveRecord
attr_accessor :tables
- delegate :chain, :to => :reflection
-
def initialize(reflection, index, join_type)
super(reflection.klass)
@@ -42,7 +40,7 @@ module ActiveRecord
# The chain starts with the target table, but we want to end with it here (makes
# more sense in this context), so we reverse
- chain.reverse_each do |reflection|
+ reflection.chain.reverse_each do |reflection|
table = tables.shift
klass = reflection.klass