29d07e7326
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
16 lines
215 B
Ruby
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
|