Module: ActsAsFollower

Defined in:
lib/acts_as_follower/follower.rb,
lib/acts_as_follower1.rb,
lib/acts_as_follower/railtie.rb,
lib/acts_as_follower/version.rb,
lib/acts_as_follower/followable.rb,
lib/acts_as_follower/follower_lib.rb,
lib/acts_as_follower/follow_scopes.rb

Overview

:nodoc:

Defined Under Namespace

Modules: FollowScopes, Followable, Follower, FollowerLib Classes: Configuration, Railtie

Constant Summary collapse

VERSION =
"1.0.9"

Class Method Summary collapse

Class Method Details

.method_missing(method_name, *args, &block) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/acts_as_follower1.rb', line 14

def self.method_missing(method_name, *args, &block)
  if method_name == :custom_parent_classes=
    ActiveSupport::Deprecation.warn("Setting custom parent classes is deprecated and will be removed in future versions.")
  end
  @configuration.respond_to?(method_name) ?
      @configuration.send(method_name, *args, &block) : super
end

.setup {|@configuration| ... } ⇒ Object

Yields:

  • (@configuration)


9
10
11
12
# File 'lib/acts_as_follower1.rb', line 9

def self.setup
  @configuration ||= Configuration.new
  yield @configuration if block_given?
end