aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/deprecation.rb
blob: 5a5b4e3f805f8ac3bc9a8cfe732e3c58615eaa5b (plain) (blame)
1
2
3
4
5
6
7
8
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