Module: ActiveSupport::Deprecation::InstanceDelegator

Included in:
ActiveSupport::Deprecation
Defined in:
activesupport/lib/active_support/deprecation/instance_delegator.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods, OverrideDelegators

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
# File 'activesupport/lib/active_support/deprecation/instance_delegator.rb', line 6

def self.included(base)
  base.singleton_class.alias_method(:_instance, :instance)
  base.extend(ClassMethods)
  base.singleton_class.prepend(OverrideDelegators)
  base.public_class_method :new
end