From 18b9187b561639795279a5c9e1b6c2de8f1eab70 Mon Sep 17 00:00:00 2001 From: Ernie Miller Date: Fri, 11 Jan 2013 09:42:15 -0500 Subject: Revert "Merge pull request #7661 from ernie/build-join-records-on-unsaved-hmt" This reverts commit ee439895759b38431ad025f3c234831f30dadcdb. It would appear that #7661 had unintended consequences to the API. Until we can sort those out, this should not be in 3.2.x, and wait for 4.0.0. --- .../associations/has_many_through_association.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'activerecord/lib/active_record/associations/has_many_through_association.rb') diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb index ce81333aa9..53d49fef2e 100644 --- a/activerecord/lib/active_record/associations/has_many_through_association.rb +++ b/activerecord/lib/active_record/associations/has_many_through_association.rb @@ -38,20 +38,6 @@ module ActiveRecord super end - def concat_records(records) - ensure_not_nested - - records = super - - if owner.new_record? && records - records.flatten.each do |record| - build_through_record(record) - end - end - - records - end - def insert_record(record, validate = true, raise = false) ensure_not_nested -- cgit v1.2.3