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:
parent
bcbc4f44ec
commit
34c77bcf2d
2 changed files with 2 additions and 2 deletions
|
@ -1577,7 +1577,7 @@ module ActiveRecord
|
||||||
scope = nil
|
scope = nil
|
||||||
end
|
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
|
builder = Builder::HasAndBelongsToMany.new name, self, options
|
||||||
|
|
||||||
|
|
|
@ -542,7 +542,7 @@ Joining, Preloading and eager loading of these associations is deprecated and wi
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class HABTMReflection < AssociationReflection #:nodoc:
|
class HasAndBelongsToManyReflection < AssociationReflection #:nodoc:
|
||||||
def initialize(macro, name, scope, options, active_record)
|
def initialize(macro, name, scope, options, active_record)
|
||||||
super
|
super
|
||||||
@collection = true
|
@collection = true
|
||||||
|
|
Loading…
Reference in a new issue