module ActsAsMentionable

Schema Information

Table name: mentions

id               :integer          not null, primary key
mentionable_id   :integer          not null
mentionable_type :string(255)      not null
mentioner_id     :integer          not null
mentioner_type   :string(255)      not null
created_at       :datetime         not null
updated_at       :datetime         not null

Constants

VERSION

Public Class Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/acts_as_mentionable.rb, line 33
def self.method_missing method_name, *args, &block
  if @configuration.respond_to?(method_name)
    @configuration.send(method_name, *args, &block)
  else
    super
  end
end
respond_to_missing?(method_name, include_private = false) click to toggle source
Calls superclass method
# File lib/acts_as_mentionable.rb, line 29
def self.respond_to_missing? method_name, include_private = false
  @configuration.respond_to?(method_name) || super
end
setup() { |configuration| ... } click to toggle source
# File lib/acts_as_mentionable.rb, line 24
def self.setup
  @configuration ||= Configuration.new
  yield @configuration if block_given?
end