aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_helper.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-02 15:53:56 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-02 15:53:56 -0700
commit88c009377851912c60fd16ec4bfab3001ac2cf9f (patch)
tree55b77262e9277deb137fbf92396065aef11d6929 /activerecord/lib/active_record/associations/join_helper.rb
parent99185f00045df71b080746b1d0a3fc0abdf36af2 (diff)
downloadrails-88c009377851912c60fd16ec4bfab3001ac2cf9f.tar.gz
rails-88c009377851912c60fd16ec4bfab3001ac2cf9f.tar.bz2
rails-88c009377851912c60fd16ec4bfab3001ac2cf9f.zip
remove HABTM special cases from associations classes
Diffstat (limited to 'activerecord/lib/active_record/associations/join_helper.rb')
-rw-r--r--activerecord/lib/active_record/associations/join_helper.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/associations/join_helper.rb b/activerecord/lib/active_record/associations/join_helper.rb
index 27b70edf1a..68c36d47e8 100644
--- a/activerecord/lib/active_record/associations/join_helper.rb
+++ b/activerecord/lib/active_record/associations/join_helper.rb
@@ -16,13 +16,6 @@ module ActiveRecord
table_name_for(reflection),
table_alias_for(reflection, reflection != self.reflection)
)
-
- if reflection.source_macro == :has_and_belongs_to_many
- tables << alias_tracker.aliased_table_for(
- reflection.source_reflection.join_table,
- table_alias_for(reflection, true)
- )
- end
end
tables
end