aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAnton Davydov <antondavydov.o@gmail.com>2015-05-24 20:38:53 +0300
committerAnton Davydov <antondavydov.o@gmail.com>2015-05-24 20:38:53 +0300
commitf671cbecf45a10d78c2617b08ea01d8d4a2a2b21 (patch)
tree158367642939904e151a29e7a7e5ce4cd94af67f /activesupport
parentf271f43f1059982e4e43c29ba2f8abc974ba0ea8 (diff)
downloadrails-f671cbecf45a10d78c2617b08ea01d8d4a2a2b21.tar.gz
rails-f671cbecf45a10d78c2617b08ea01d8d4a2a2b21.tar.bz2
rails-f671cbecf45a10d78c2617b08ea01d8d4a2a2b21.zip
[skip ci] Add documentation for DeprecatedConstantProxy#class
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/deprecation/proxy_wrappers.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/deprecation/proxy_wrappers.rb b/activesupport/lib/active_support/deprecation/proxy_wrappers.rb
index dfdb8034e5..3ff4fe95aa 100644
--- a/activesupport/lib/active_support/deprecation/proxy_wrappers.rb
+++ b/activesupport/lib/active_support/deprecation/proxy_wrappers.rb
@@ -127,6 +127,11 @@ module ActiveSupport
@deprecator = deprecator
end
+ # Returns class of a new contstant.
+ #
+ # PLANETS_POST_2006 = %w(mercury venus earth mars jupiter saturn uranus neptune)
+ # PLANETS = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('PLANETS', 'PLANETS_POST_2006')
+ # PLANETS.class # => Array
def class
target.class
end