diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-20 20:42:46 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-20 20:42:46 -0300 |
commit | 26931eb32082b3468dc12df59c4041841f64c510 (patch) | |
tree | 72f40802ecc0cf9f2cad45c1b1eb7bc2133cd647 /activerecord/CHANGELOG.md | |
parent | 5508a3e5ca05d4c43232868f40ebd726d251eeac (diff) | |
download | rails-26931eb32082b3468dc12df59c4041841f64c510.tar.gz rails-26931eb32082b3468dc12df59c4041841f64c510.tar.bz2 rails-26931eb32082b3468dc12df59c4041841f64c510.zip |
Revert "Revert "Merge pull request #8313 from alan/only_save_changed_has_one_objects""
This reverts commit e94e6c27af495a2460c811bb506459f1428dec6b.
Conflicts:
activerecord/CHANGELOG.md
The original commit was reverted only to be safe since #14407 were reported.
We don't have any proof we added a regression with the original commit
so reverting it now will give us more problem.
Closes #14407
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 55a3cbfd60..c824cf1c58 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -434,12 +434,6 @@ *Cody Cutrer*, *Steve Rice*, *Rafael Mendonça Franca* -* Save `has_one` association even if the record doesn't changed. - - Fixes #14407. - - *Rafael Mendonça França* - * Use singular table name in generated migrations when `ActiveRecord::Base.pluralize_table_names` is `false`. @@ -518,6 +512,12 @@ *Troy Kruthoff*, *Lachlan Sylvester* +* Only save has_one associations if record has changes. + Previously after save related callbacks, such as `#after_commit`, were triggered when the has_one + object did not get saved to the db. + + *Alan Kennedy* + * Allow strings to specify the `#order` value. Example: |