Permalink
Browse files

remove HABTM special cases from the fixtures

  • Loading branch information...
tenderlove committed Oct 2, 2013
1 parent 8e4afa4 commit 99185f00045df71b080746b1d0a3fc0abdf36af2
Showing with 0 additions and 12 deletions.
  1. +0 −12 activerecord/lib/active_record/fixtures.rb
@@ -639,8 +639,6 @@ def table_rows
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 @@ def lhs_key
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

0 comments on commit 99185f0

Please sign in to comment.