Module: Redmine::Acts::Mentionable::InstanceMethods
- Defined in:
- lib/redmine/acts/mentionable.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
41 42 43 |
# File 'lib/redmine/acts/mentionable.rb', line 41 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#notified_mentions ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/redmine/acts/mentionable.rb', line 45 def notified_mentions notified = mentioned_users.to_a notified.reject! {|user| user.mail.blank? || user.mail_notification == 'none'} if respond_to?(:visible?) notified.select! {|user| visible?(user)} end notified end |