Type:
Class

This DeprecatedConstantProxy transforms constant to deprecated constant.

OLD_CONST = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('OLD_CONST', 'NEW_CONST')
OLD_CONST = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('OLD_CONST', 'NEW_CONST', deprecator_instance)

When someone use old constant this will trigger warn method on deprecator_instance.

Default deprecator is ActiveSupport::Deprecation.

new

new(old_const, new_const, deprecator = ActiveSupport::Deprecation.instance) Class Public methods

2015-06-20 00:00:00
class

class() Instance Public methods

2015-06-20 00:00:00