Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 5232d812819d1d44187a54cb025835b1f9cb2296 1 parent cf28109
@tarmo tarmo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 activesupport/lib/active_support/deprecation.rb
View
4 activesupport/lib/active_support/deprecation.rb
@@ -185,6 +185,10 @@ def initialize(old_const, new_const)
@new_const = new_const
end
+ def class
+ target.class
+ end
+
private
def target
@new_const.to_s.constantize
Please sign in to comment.
Something went wrong with that request. Please try again.