123456789_123456789_123456789_123456789_123456789_

Class: Rails::DeprecatedConstant

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveSupport::Deprecation::DeprecatedConstantProxy
Defined in: railties/lib/rails/deprecation.rb

Class Method Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from ActiveSupport::Deprecation::DeprecatedConstantProxy

Class Method Details

.deprecate(old, current)

[ GitHub ]

  
# File 'railties/lib/rails/deprecation.rb', line 5

def self.deprecate(old, current)
  # double assignment is used to avoid "assigned but unused variable" warning
  constant = constant = new(old, current)
  eval "::#{old} = constant"
end