[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
1 changed files with 2 additions and 0 deletions

View File

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