diff options
Diffstat (limited to 'activerecord/lib/active_record/associations/association_scope.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/association_scope.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_scope.rb b/activerecord/lib/active_record/associations/association_scope.rb index 9d94822fc5..1f77a083aa 100644 --- a/activerecord/lib/active_record/associations/association_scope.rb +++ b/activerecord/lib/active_record/associations/association_scope.rb @@ -126,7 +126,6 @@ module ActiveRecord def get_chain(refl, association, tracker) name = refl.name runtime_reflection = ActiveRecord::Reflection::RuntimeReflection.new(refl, association) - alias_name = tracker.aliased_table_for(runtime_reflection.table_name, runtime_reflection.alias_candidate(name)) prev = runtime_reflection refl.chain.drop(1).each { |reflection| alias_name = tracker.aliased_table_for(reflection.table_name, reflection.alias_candidate(name)) |