aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/deprecation.rb
blob: 9c169a259855f57c115e72fa4123a592f8adf453 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
require 'active_support/deprecation'

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