1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #23706 from vipulnsward/add-changelog-for-regression

Add missing CHANGELOG for regression fix in #18155 which fixes #13387
This commit is contained in:
Yves Senn 2016-02-16 09:43:39 +01:00
commit cf0b903f43

View file

@ -1,5 +1,12 @@
* Rework `ActiveRecord::Relation#last` * Fix a regression on has many association, where calling a child from parent in child's callback
results in same child records getting added repeatedly to target.
Fixes #13387.
*Bogdan Gusiev*, *Jon Hinson*
* Rework `ActiveRecord::Relation#last`
1. Never perform additional SQL on loaded relation 1. Never perform additional SQL on loaded relation
2. Use SQL reverse order instead of loading relation if relation doesn't have limit 2. Use SQL reverse order instead of loading relation if relation doesn't have limit
3. Deprecated relation loading when SQL order can not be automatically reversed 3. Deprecated relation loading when SQL order can not be automatically reversed