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:
parent
cf28109158
commit
5232d81281
1 changed files with 4 additions and 0 deletions
|
@ -185,6 +185,10 @@ module ActiveSupport
|
|||
@new_const = new_const
|
||||
end
|
||||
|
||||
def class
|
||||
target.class
|
||||
end
|
||||
|
||||
private
|
||||
def target
|
||||
@new_const.to_s.constantize
|
||||
|
|
Loading…
Reference in a new issue