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
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 |