aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/instance_delegator.rb
Commit message (Collapse)AuthorAgeFilesLines
* nodoc AS::Deprecation::InstanceDelegator class [ci skip]Francesco Rodriguez2012-11-291-3/+3
|
* Change ActiveSupport::Deprecation to class.Piotr Niełacny2012-09-131-0/+24
ActiveSupport::Deprecation is now a class rather than a module. You can get instance of ActiveSupport::Deprecation calling #instance method. ActiveSupport::Deprecation.instance But when you need to get new object od ActiveSupport::Deprecation you need to just call #new. @instance = ActiveSupport::Deprecation.new Since you can create a new object, you can change the version and the name of the library where the deprecator concerned. ActiveSupport::Deprecation.new('2.0', 'MyGem') If you need use another deprecator instance you can select it in the options of deprecate method. deprecate :method, :deprecator => deprecator_instance Documentation has been updated.