diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-22 22:10:24 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-22 22:10:24 +0200 |
commit | 45a6cf3e038614cd415cbd1f09d5647c739aac23 (patch) | |
tree | b49b6f204fb3f2f4cb612ba7fd77e8f1ff39ff83 | |
parent | 2e4c65e3afb18fc9a84d4d3ae893209efce27592 (diff) | |
download | rails-45a6cf3e038614cd415cbd1f09d5647c739aac23.tar.gz rails-45a6cf3e038614cd415cbd1f09d5647c739aac23.tar.bz2 rails-45a6cf3e038614cd415cbd1f09d5647c739aac23.zip |
[ci skip] Active Storage: updating associations replaces
In Rails updating an Active Storage relation will now replace the entire
association instead of merely adding to it.
https://github.com/rails/rails/issues/35817#issuecomment-485512520
Fixes #35817
cc @georgeclaghorn
-rw-r--r-- | guides/source/6_0_release_notes.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/6_0_release_notes.md b/guides/source/6_0_release_notes.md index 0dfaac8ec1..8c9f55fc85 100644 --- a/guides/source/6_0_release_notes.md +++ b/guides/source/6_0_release_notes.md @@ -453,6 +453,8 @@ Please refer to the [Changelog][active-storage] for detailed changes. ### Notable changes +* Updating an attached model via `update` or `update!` ala `@user.update!(images: [ … ])` now replaces the existing images instead of merely adding to them. + Active Model ------------ |