diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-16 00:40:41 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-16 00:40:41 -0300 |
commit | e4637530cd181fb03b35ce5fa2e95508f4bc1e1c (patch) | |
tree | 4cb52e0011829c7ff361bf555be649426f15f7d2 /activesupport/lib/active_support | |
parent | 3f04785f77899b286d02a0a95dd7fbfc341dc999 (diff) | |
download | rails-e4637530cd181fb03b35ce5fa2e95508f4bc1e1c.tar.gz rails-e4637530cd181fb03b35ce5fa2e95508f4bc1e1c.tar.bz2 rails-e4637530cd181fb03b35ce5fa2e95508f4bc1e1c.zip |
The third argument of deprecation_warning is always optional
[ci skip]
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/deprecation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/deprecation.rb b/activesupport/lib/active_support/core_ext/module/deprecation.rb index 53f8ea3bad..d873de197f 100644 --- a/activesupport/lib/active_support/core_ext/module/deprecation.rb +++ b/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 |