From 1011153f74921af6148d5ed8fa15ec50ab67b5a8 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Wed, 13 Nov 2024 09:23:16 +0100 Subject: [PATCH] Update callback to create nested message objects --- app/models/message_object_datum.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/message_object_datum.rb b/app/models/message_object_datum.rb index 75eabd0f6..13686d6ca 100644 --- a/app/models/message_object_datum.rb +++ b/app/models/message_object_datum.rb @@ -11,6 +11,6 @@ class MessageObjectDatum < ApplicationRecord belongs_to :message_object - after_save_commit { NestedMessageObject.create_from_message_object(message_object) } - after_save_commit { message_object.message.update_html_visualization if message_object.form? } + after_save { NestedMessageObject.create_from_message_object(message_object) } + after_save { message_object.message.update_html_visualization if message_object.form? } end