ae497aae85
Buckets destroy their bubbles, which destroy their thread entries, which destroy their threadables, which is how comments end up destroyed, and then rollups end up deleting their events
12 lines
243 B
Ruby
12 lines
243 B
Ruby
module Threadable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
has_one :thread_entry, as: :threadable
|
|
|
|
after_create { create_thread_entry! bubble: bubble }
|
|
after_update { bubble.touch }
|
|
after_touch { bubble.touch }
|
|
end
|
|
end
|