Module: ActiveSupport::Deprecation::InstanceDelegator::ClassMethods

Defined in:
activesupport/lib/active_support/deprecation/instance_delegator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#include(included_module) ⇒ Object



16
17
18
19
# File 'activesupport/lib/active_support/deprecation/instance_delegator.rb', line 16

def include(included_module)
  included_module.instance_methods.each { |m| method_added(m) }
  super
end

#method_added(method_name) ⇒ Object



21
22
23
# File 'activesupport/lib/active_support/deprecation/instance_delegator.rb', line 21

def method_added(method_name)
  singleton_class.delegate(method_name, to: :instance)
end