Permalink
Browse files

Use HasAndBelongsToMany instead of HABTM

  • Loading branch information...
arthurnn committed Jun 10, 2014
1 parent bcbc4f4 commit 34c77bcf2dea31decc3a0fe78874ab598d7e8651
Showing with 2 additions and 2 deletions.
  1. +1 −1 activerecord/lib/active_record/associations.rb
  2. +1 −1 activerecord/lib/active_record/reflection.rb
@@ -1577,7 +1577,7 @@ def has_and_belongs_to_many(name, scope = nil, options = {}, &extension)
scope = nil
end
- habtm_reflection = ActiveRecord::Reflection::HABTMReflection.new(:has_and_belongs_to_many, name, scope, options, self)
+ habtm_reflection = ActiveRecord::Reflection::HasAndBelongsToManyReflection.new(:has_and_belongs_to_many, name, scope, options, self)
builder = Builder::HasAndBelongsToMany.new name, self, options
@@ -542,7 +542,7 @@ def primary_key(klass)
end
end
- class HABTMReflection < AssociationReflection #:nodoc:
+ class HasAndBelongsToManyReflection < AssociationReflection #:nodoc:
def initialize(macro, name, scope, options, active_record)
super
@collection = true

0 comments on commit 34c77bc

Please sign in to comment.