9b4fec936e
- 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
13 lines
264 B
Ruby
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
|