Threadables should thread entry

This commit is contained in:
Jose Farias
2024-10-24 17:48:32 -06:00
parent 2a4a07f00a
commit 652ec68e9c
+2
View File
@@ -7,5 +7,7 @@ module Threadable
has_one :thread_entry, as: :threadable, class_name: "Bubble::Thread::Entry"
after_create -> { create_thread_entry! thread: thread }
after_update -> { thread_entry.touch }
after_touch -> { thread_entry.touch }
end
end