aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-02 15:51:29 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-02 15:51:29 -0700
commit99185f00045df71b080746b1d0a3fc0abdf36af2 (patch)
tree3a7b7292279cee05c324cbdab7f6d1c286331616 /activerecord/lib
parent8e4afa4eb1bd64cdfa3689df7a06e5148e063364 (diff)
downloadrails-99185f00045df71b080746b1d0a3fc0abdf36af2.tar.gz
rails-99185f00045df71b080746b1d0a3fc0abdf36af2.tar.bz2
rails-99185f00045df71b080746b1d0a3fc0abdf36af2.zip
remove HABTM special cases from the fixtures
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/fixtures.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb
index 9a26e5df3f..3bb3131bd1 100644
--- a/activerecord/lib/active_record/fixtures.rb
+++ b/activerecord/lib/active_record/fixtures.rb
@@ -639,8 +639,6 @@ module ActiveRecord
if association.options[:through]
add_join_records(rows, row, HasManyThroughProxy.new(association))
end
- when :has_and_belongs_to_many
- add_join_records(rows, row, HABTMProxy.new(association))
end
end
end
@@ -674,16 +672,6 @@ module ActiveRecord
end
end
- class HABTMProxy < ReflectionProxy # :nodoc:
- def rhs_key
- @association.association_foreign_key
- end
-
- def lhs_key
- @association.foreign_key
- end
- end
-
private
def primary_key_name
@primary_key_name ||= model_class && model_class.primary_key