Use Proc for Threadable after_create

This commit is contained in:
Jose Farias
2024-10-24 11:31:06 -06:00
parent 70ff52f883
commit 042bc2c10e
+1 -1
View File
@@ -3,6 +3,6 @@ module Threadable
included do
has_one :thread_entry, as: :threadable
after_create { create_thread_entry! bubble: bubble }
after_create -> { create_thread_entry! bubble: bubble }
end
end