1
0
Fork 0
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:
Kasper Timm Hansen 2019-04-22 22:10:24 +02:00
parent 2e4c65e3af
commit 45a6cf3e03
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -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
------------ ------------