Skip to content

Commit

Permalink
Update callback to create nested message objects
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Nov 13, 2024
1 parent 4f81339 commit 1011153
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 1011153

Please sign in to comment.