From 45a6cf3e038614cd415cbd1f09d5647c739aac23 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Mon, 22 Apr 2019 22:10:24 +0200 Subject: [PATCH] [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 --- guides/source/6_0_release_notes.md | 2 ++ 1 file changed, 2 insertions(+) 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 ------------