Permalink
Browse files

The third argument of deprecation_warning is always optional

[ci skip]
  • Loading branch information...
1 parent 3f04785 commit e4637530cd181fb03b35ce5fa2e95508f4bc1e1c @rafaelfranca rafaelfranca committed Apr 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit e463753

Please sign in to comment.