diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-10 00:00:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-10 00:00:03 -0300 |
commit | b64c057e8708e0a23d249d59cfbfe44e340156f2 (patch) | |
tree | 75bc11d7f523c4cd5653bcd793ff74fc69eb32a5 | |
parent | bcbc4f44ec24b52f75361e6342f063ad8e3892c7 (diff) | |
parent | 34c77bcf2dea31decc3a0fe78874ab598d7e8651 (diff) | |
download | rails-b64c057e8708e0a23d249d59cfbfe44e340156f2.tar.gz rails-b64c057e8708e0a23d249d59cfbfe44e340156f2.tar.bz2 rails-b64c057e8708e0a23d249d59cfbfe44e340156f2.zip |
Merge pull request #15599 from arthurnn/HABTMAssociation
Use HasAndBelongsToMany instead of HABTM
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 1d1201a838..6222bfe903 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -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 diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index d6686151be..24f3de019d 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -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 |