@ -52,7 +52,7 @@ module MailDigestHelper
end
def digest_comment_text(notification)
if notification.reason == "mentioned"
if notification.reason_mentioned?
sanitize I18n.t(:'mail.digests.work_packages.mentioned')
else
sanitize I18n.t(:'mail.digests.work_packages.comment_added')
@ -12,7 +12,8 @@ class Notification < ApplicationRecord
responsible: 9
}.freeze
enum reason: REASONS
enum reason: REASONS,
_prefix: true
belongs_to :recipient, class_name: 'User'
belongs_to :actor, class_name: 'User'