From 610b63288f05bdec677bfd78c546ee085e5184b9 Mon Sep 17 00:00:00 2001 From: Ernie Miller Date: Sun, 16 Sep 2012 21:23:58 -0400 Subject: Fix collection= on hm:t join models when unsaved If assigning to a has_many :through collection against an unsaved object using the collection=[] syntax, the join models were not properly created, previously. --- activerecord/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index a4ba956477..ef059e5d3c 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* Fix creation of through association models when using collection=[] + on a hm:t association from an unsaved model. + + *Ernie Miller* + * Explain only normal CRUD sql (select / update / insert / delete). Fix problem that explains unexplainable sql. Closes #7544 #6458. -- cgit v1.2.3