blob: 9e77ac3c4502c2437cdb3ef73aa54a4e41a00eb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
require 'active_support/deprecation/method_wrappers'
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
|