From 35a838afd2c12efbf1f9dc226d1e1045b630d64b Mon Sep 17 00:00:00 2001 From: f Date: Mon, 25 Mar 2024 12:14:16 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20romper=20la=20relaci=C3=B3n=20has=5Fmany?= =?UTF-8?q?=20desde=20un=20belongs=5Fto=20#7537?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/post_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/post_service.rb b/app/services/post_service.rb index ff2ac6bd..6f42bb22 100644 --- a/app/services/post_service.rb +++ b/app/services/post_service.rb @@ -225,7 +225,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do when 'belongs_to', 'has_one' if value_was.present? associated_posts(value_was).each do |remove_post| - remove_relation_from(remove_post[inverse_attribute], value_was) + remove_relation_from(remove_post[inverse_attribute], post.uuid.value) end end