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

Pass class through to DeprecatedConstantProxy target

This is needed because include_all_modules_from checks
calls "class" on every constant and sometimes it can
hit deprecated constants which aren't even Modules,
but while checking for it deprecation warnings are shown.
This commit is contained in:
Tarmo Tänav 2008-08-23 19:12:14 +03:00
parent cf28109158
commit 5232d81281

View file

@ -185,6 +185,10 @@ module ActiveSupport
@new_const = new_const @new_const = new_const
end end
def class
target.class
end
private private
def target def target
@new_const.to_s.constantize @new_const.to_s.constantize