mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[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
This commit is contained in:
parent
2e4c65e3af
commit
45a6cf3e03
1 changed files with 2 additions and 0 deletions
|
@ -453,6 +453,8 @@ Please refer to the [Changelog][active-storage] for detailed changes.
|
||||||
|
|
||||||
### Notable 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
|
Active Model
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue