1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

nodoc AS::Deprecation::InstanceDelegator class [ci skip]

This commit is contained in:
Francesco Rodriguez 2012-11-29 13:31:00 -05:00
parent abdfffa213
commit d168d234e3

View file

@ -3,13 +3,13 @@ require 'active_support/core_ext/module/delegation'
module ActiveSupport
class Deprecation
module InstanceDelegator
module InstanceDelegator # :nodoc:
def self.included(base)
base.extend(ClassMethods)
base.public_class_method :new
end
module ClassMethods
module ClassMethods # :nodoc:
def include(included_module)
included_module.instance_methods.each { |m| method_added(m) }
super
@ -21,4 +21,4 @@ module ActiveSupport
end
end
end
end
end