Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
These similar methods exist in v3.2.13:
deprecate(*method_names)
public
Declare that a method has been deprecated.
Show source
def deprecate(*method_names)
options = method_names.extract_options!
method_names = method_names + options.keys
method_names.each do |method_name|
alias_method_chain(method_name, :deprecation) do |target, punctuation|
class_eval("def \#{target}_with_deprecation\#{punctuation}(*args, &block) # def generate_secret_with_deprecation(*args, &block)\n::ActiveSupport::Deprecation.warn( # ::ActiveSupport::Deprecation.warn(\nself.class.deprecated_method_warning( # self.class.deprecated_method_warning(\n:\#{method_name}, # :generate_secret,\n\#{options[method_name].inspect}), # \"You should use ActiveSupport::SecureRandom.hex(64)\"),\ncaller # caller\n) # )\nsend(:\#{target}_without_deprecation\#{punctuation}, *args, &block) # send(:generate_secret_without_deprecation, *args, &block)\nend # end\n", __FILE__, __LINE__ + 1)
end
end
end