Sha256: def3febc4edcffcd611423eaad4b712a19e4d983988f782469d002a94fb6d27b
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
require "acts_as_follower/version" module ActsAsFollower autoload :Follower, 'acts_as_follower/follower' autoload :Followable, 'acts_as_follower/followable' autoload :FollowerLib, 'acts_as_follower/follower_lib' autoload :FollowScopes, 'acts_as_follower/follow_scopes' def self.setup @configuration ||= Configuration.new yield @configuration if block_given? end 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 class Configuration attr_accessor :custom_parent_classes def initialize @custom_parent_classes = [] end end setup require 'acts_as_follower/railtie' if defined?(Rails) && Rails::VERSION::MAJOR >= 3 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_follower1-1.0.9 | lib/acts_as_follower1.rb |