Skip to content

Commit

Permalink
[ci skip] Active Storage: updating associations replaces
Browse files Browse the repository at this point in the history
In Rails updating an Active Storage relation will now replace the entire
association instead of merely adding to it.
rails#35817 (comment)

Fixes rails#35817

cc @georgeclaghorn
  • Loading branch information
kaspth committed Apr 22, 2019
1 parent 2e4c65e commit 45a6cf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/source/6_0_release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------

Expand Down

0 comments on commit 45a6cf3

Please sign in to comment.