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
13 14 15 16 |
# File 'activesupport/lib/active_support/deprecation/instance_delegator.rb', line 13 def include(included_module) included_module.instance_methods.each { |m| method_added(m) } super end |
#method_added(method_name) ⇒ Object
18 19 20 |
# File 'activesupport/lib/active_support/deprecation/instance_delegator.rb', line 18 def method_added(method_name) singleton_class.delegate(method_name, to: :instance) end |