aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-11 07:34:53 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-11 07:34:53 -0800
commit2c5e0adefeb1541cfc887a876d9e96329a70537d (patch)
treecb586345211d9965ee6410b1da1ffd43de493ea1 /activerecord/lib/active_record
parent3211eb17b999523d19d7e5e4431e0f1ac25a740f (diff)
parent18b9187b561639795279a5c9e1b6c2de8f1eab70 (diff)
downloadrails-2c5e0adefeb1541cfc887a876d9e96329a70537d.tar.gz
rails-2c5e0adefeb1541cfc887a876d9e96329a70537d.tar.bz2
rails-2c5e0adefeb1541cfc887a876d9e96329a70537d.zip
Merge pull request #8895 from ernie/revert-hmt-on-unsaved-in-3-2
Revert hm:t on unsaved collection for 3.2
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb14
1 files changed, 0 insertions, 14 deletions
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