diff options
| author | Anton Davydov <antondavydov.o@gmail.com> | 2015-05-24 20:38:53 +0300 | 
|---|---|---|
| committer | Anton Davydov <antondavydov.o@gmail.com> | 2015-05-24 20:38:53 +0300 | 
| commit | f671cbecf45a10d78c2617b08ea01d8d4a2a2b21 (patch) | |
| tree | 158367642939904e151a29e7a7e5ce4cd94af67f | |
| parent | f271f43f1059982e4e43c29ba2f8abc974ba0ea8 (diff) | |
| download | rails-f671cbecf45a10d78c2617b08ea01d8d4a2a2b21.tar.gz rails-f671cbecf45a10d78c2617b08ea01d8d4a2a2b21.tar.bz2 rails-f671cbecf45a10d78c2617b08ea01d8d4a2a2b21.zip | |
[skip ci] Add documentation for DeprecatedConstantProxy#class
| -rw-r--r-- | activesupport/lib/active_support/deprecation/proxy_wrappers.rb | 5 | 
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 | 
