Method: MentionSystem::Mentionee#mentioners_by

Defined in:
lib/mention_system/mentionee.rb

#mentioners_by(klass) ⇒ ActiveRecord::Relation

Retrieves a scope of MentionSystem::Mention objects that mentions self filtered MentionSystem::Mentioner type

Parameters:

  • klass (Class)
    • the Class to filter

Returns:

  • (ActiveRecord::Relation)


53
54
55
# File 'lib/mention_system/mentionee.rb', line 53

def mentioners_by(klass)
  Mention.scope_by_mentionee(self).scope_by_mentioner_type(klass)
end