Skip to content

Commit

Permalink
Merge pull request #485 from slovensko-digital/GO-128/update_creating…
Browse files Browse the repository at this point in the history
…_nested_message_objects

GO-128 Update callback to create nested message objects
  • Loading branch information
luciajanikova authored Nov 13, 2024
2 parents 4f81339 + 1011153 commit 8a5e659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/message_object_datum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8a5e659

Please sign in to comment.