Files
Jorge Manrubia 29d07e7326 Fix: not detecting mentions when publishing saved drafts
The problem was that publishing a card with `#publish` was tracking the event
after updating the status, which was clearing the saved changes and preventing the
code from detecting the mention.

See:
https://app.fizzy.do/5986089/cards/2835
2025-12-01 15:39:45 +01:00

16 lines
215 B
Ruby

module Card::Mentions
extend ActiveSupport::Concern
included do
include ::Mentions
def mentionable?
published?
end
def should_check_mentions?
was_just_published?
end
end
end