Module | ActiveSupport::Deprecation::ClassMethods |
In: |
vendor/rails/activesupport/lib/active_support/deprecation.rb
|
Declare that a method has been deprecated.
# File vendor/rails/activesupport/lib/active_support/deprecation.rb, line 73 73: def deprecate(*method_names) 74: method_names.each do |method_name| 75: class_eval("def \#{method_name}_with_deprecation(*args, &block)\n::ActiveSupport::Deprecation.warn(\"\#{method_name} is deprecated and will be removed from Rails 2.0\", caller)\n\#{method_name}_without_deprecation(*args, &block)\nend\n", __FILE__, __LINE__) 76: alias_method_chain(method_name, :deprecation) 77: end 78: end