diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-11 20:27:52 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-02 12:06:24 -0300 |
commit | 78dab2a8569408658542e462a957ea5a35aa4679 (patch) | |
tree | 2560e30a39209010fb82aeed6c706b48b9698a68 /activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb | |
parent | e8615b99c6bced24f7e6866d37589588f3924cc1 (diff) | |
download | rails-78dab2a8569408658542e462a957ea5a35aa4679.tar.gz rails-78dab2a8569408658542e462a957ea5a35aa4679.tar.bz2 rails-78dab2a8569408658542e462a957ea5a35aa4679.zip |
Remove support to activerecord-deprecated_finders
Diffstat (limited to 'activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb b/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb index 092b4ebd2f..93dc4ae118 100644 --- a/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb +++ b/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb @@ -87,11 +87,11 @@ module ActiveRecord::Associations::Builder middle_name = [lhs_model.name.downcase.pluralize, association_name].join('_').gsub(/::/, '_').to_sym middle_options = middle_options join_model - hm_builder = HasMany.create_builder(lhs_model, - middle_name, - nil, - middle_options) - hm_builder.build lhs_model + + HasMany.create_reflection(lhs_model, + middle_name, + nil, + middle_options) end private |