From d7f11cee0327e4c7a437442e9653f60ae08e36cb Mon Sep 17 00:00:00 2001 From: John Fragoulis Date: Fri, 23 Feb 2018 13:08:20 +0200 Subject: Correct ActiveSupport::Deprecation::Behavior#behavior= documentation The callback parameters need to reflect changes after https://github.com/rails/rails/pull/28800 --- activesupport/lib/active_support/deprecation/behaviors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb index 581db5f449..66d6f3225a 100644 --- a/activesupport/lib/active_support/deprecation/behaviors.rb +++ b/activesupport/lib/active_support/deprecation/behaviors.rb @@ -85,7 +85,7 @@ module ActiveSupport # ActiveSupport::Deprecation.behavior = :stderr # ActiveSupport::Deprecation.behavior = [:stderr, :log] # ActiveSupport::Deprecation.behavior = MyCustomHandler - # ActiveSupport::Deprecation.behavior = ->(message, callstack) { + # ActiveSupport::Deprecation.behavior = ->(message, callstack, deprecation_horizon, gem_name) { # # custom stuff # } def behavior=(behavior) -- cgit v1.2.3