diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-10-20 16:54:43 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-10-20 16:54:43 +0200 |
commit | 71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b (patch) | |
tree | 54fc7a8c5569cb6e883d6a8845f0f09126717ab6 /activesupport/lib/active_support/core_ext/module/deprecation.rb | |
parent | d4db09514cc3f18d1d157caaf0784bedf38fafe8 (diff) | |
download | rails-71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b.tar.gz rails-71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b.tar.bz2 rails-71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b.zip |
Hash Syntax changes to 1.9 format
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/deprecation.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/deprecation.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/deprecation.rb b/activesupport/lib/active_support/core_ext/module/deprecation.rb index 34ec6a3d8f..cc45cee5b8 100644 --- a/activesupport/lib/active_support/core_ext/module/deprecation.rb +++ b/activesupport/lib/active_support/core_ext/module/deprecation.rb @@ -2,13 +2,13 @@ require 'active_support/deprecation/method_wrappers' class Module # deprecate :foo - # deprecate :bar => 'message' - # deprecate :foo, :bar, :baz => 'warning!', :qux => 'gone!' + # deprecate bar: 'message' + # deprecate :foo, :bar, baz: 'warning!', qux: 'gone!' # # You can also use custom deprecator instance: # - # deprecate :foo, :deprecator => MyLib::Deprecator.new - # deprecate :foo, :bar => "warning!", :deprecator => MyLib::Deprecator.new + # deprecate :foo, deprecator: MyLib::Deprecator.new + # deprecate :foo, bar: "warning!", deprecator: MyLib::Deprecator.new # # \Custom deprecators must respond to <tt>deprecation_warning(deprecated_method_name, message, caller_backtrace)</tt> # method where you can implement your custom warning behavior. |