Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The third argument of deprecation_warning is always optional

[ci skip]
  • Loading branch information...
commit e4637530cd181fb03b35ce5fa2e95508f4bc1e1c 1 parent 3f04785
@rafaelfranca rafaelfranca authored
View
2  activesupport/lib/active_support/core_ext/module/deprecation.rb
@@ -14,7 +14,7 @@ class Module
# method where you can implement your custom warning behavior.
#
# class MyLib::Deprecator
- # def deprecation_warning(deprecated_method_name, message, caller_backtrace)
+ # def deprecation_warning(deprecated_method_name, message, caller_backtrace = nil)
# message = "#{deprecated_method_name} is deprecated and will be removed from MyLibrary | #{message}"
# Kernel.warn message
# end
Please sign in to comment.
Something went wrong with that request. Please try again.