1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use HasAndBelongsToMany instead of HABTM

This commit is contained in:
Arthur Neves 2014-06-09 22:58:28 -04:00
parent bcbc4f44ec
commit 34c77bcf2d
No known key found for this signature in database
GPG key ID: 04A390FB1E433E17
2 changed files with 2 additions and 2 deletions

View file

@ -1577,7 +1577,7 @@ module ActiveRecord
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

View file

@ -542,7 +542,7 @@ Joining, Preloading and eager loading of these associations is deprecated and wi
end
end
class HABTMReflection < AssociationReflection #:nodoc:
class HasAndBelongsToManyReflection < AssociationReflection #:nodoc:
def initialize(macro, name, scope, options, active_record)
super
@collection = true