diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-02 15:51:29 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-02 15:51:29 -0700 |
commit | 99185f00045df71b080746b1d0a3fc0abdf36af2 (patch) | |
tree | 3a7b7292279cee05c324cbdab7f6d1c286331616 | |
parent | 8e4afa4eb1bd64cdfa3689df7a06e5148e063364 (diff) | |
download | rails-99185f00045df71b080746b1d0a3fc0abdf36af2.tar.gz rails-99185f00045df71b080746b1d0a3fc0abdf36af2.tar.bz2 rails-99185f00045df71b080746b1d0a3fc0abdf36af2.zip |
remove HABTM special cases from the fixtures
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 12 |
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 |