Module: Redmine::Acts::Mentionable::ClassMethods

Defined in:
lib/redmine/acts/mentionable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_mentionable(options = {}) ⇒ Object



28
29
30
31
32
33
34
35
36
37
# File 'lib/redmine/acts/mentionable.rb', line 28

def acts_as_mentionable(options = {})
  class_attribute :mentionable_attributes
  self.mentionable_attributes = options[:attributes]

  attr_accessor :mentioned_users

  send :include, Redmine::Acts::Mentionable::InstanceMethods

  after_save :parse_mentions
end