Files
fizzy/app/models/concerns/messageable.rb
T
Jorge Manrubia 9b4fec936e Move mentions to comments
- It does not make sense to scan "event summaries" for notifications.
- Placing them at the message level prevents us from using the generic approach to extract the mentionable content
2025-04-22 16:17:37 +02:00

13 lines
264 B
Ruby

module Messageable
extend ActiveSupport::Concern
TYPES = %w[ Comment EventSummary ]
included do
has_one :message, as: :messageable, touch: true, dependent: :destroy
has_one :card, through: :message
delegate :collection, to: :message
end
end