diff options
author | Ernie Miller <ernie@erniemiller.org> | 2012-09-16 21:23:58 -0400 |
---|---|---|
committer | Ernie Miller <ernie@erniemiller.org> | 2012-09-17 09:20:18 -0400 |
commit | 610b63288f05bdec677bfd78c546ee085e5184b9 (patch) | |
tree | d1ad97c1c759869b4b422965888683ceeee2cae8 /activerecord/CHANGELOG.md | |
parent | 82efe8943bf6ff12b597987506bf177d66609049 (diff) | |
download | rails-610b63288f05bdec677bfd78c546ee085e5184b9.tar.gz rails-610b63288f05bdec677bfd78c546ee085e5184b9.tar.bz2 rails-610b63288f05bdec677bfd78c546ee085e5184b9.zip |
Fix collection= on hm:t join models when unsaved
If assigning to a has_many :through collection against an unsaved
object using the collection=[<array_of_items>] syntax, the join models
were not properly created, previously.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
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. |