Module: Notifications::Commented::ClassMethods

Defined in:
app/models/notifications/commented.rb

Instance Method Summary collapse

Instance Method Details

#mention_notification_exists?(comment, recipient_person) ⇒ Boolean

Returns:

  • (Boolean)

12
13
14
# File 'app/models/notifications/commented.rb', line 12

def mention_notification_exists?(comment, recipient_person)
  Notifications::MentionedInComment.exists?(target: comment.mentions.where(person: recipient_person))
end