diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-17 21:29:30 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-17 21:29:30 -0700 |
commit | 727e9dc18a7059f024b922b65951198ff0184fdd (patch) | |
tree | 740e578645d8fdc45dbec0a4412a8455cc05bfed /activesupport/lib/active_support/core_ext | |
parent | 3202671dc9360c4a89d80355824b239b52b2f611 (diff) | |
download | rails-727e9dc18a7059f024b922b65951198ff0184fdd.tar.gz rails-727e9dc18a7059f024b922b65951198ff0184fdd.tar.bz2 rails-727e9dc18a7059f024b922b65951198ff0184fdd.zip |
Dice up ActiveSupport::Deprecation
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/deprecation.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/deprecation.rb b/activesupport/lib/active_support/core_ext/module/deprecation.rb new file mode 100644 index 0000000000..5a5b4e3f80 --- /dev/null +++ b/activesupport/lib/active_support/core_ext/module/deprecation.rb @@ -0,0 +1,9 @@ +class Module + # Declare that a method has been deprecated. + # deprecate :foo + # deprecate :bar => 'message' + # deprecate :foo, :bar, :baz => 'warning!', :qux => 'gone!' + def deprecate(*method_names) + ActiveSupport::Deprecation.deprecate_methods(self, *method_names) + end +end |