From 2768cd1d746f448f00e0aa4f955e1afdabb2e902 Mon Sep 17 00:00:00 2001 From: fatkodima Date: Tue, 27 Jun 2017 21:34:28 +0300 Subject: Remove useless class checking for `ActiveSupport::Callbacks`s result_lambda --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/callbacks.rb') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index ddfa91a342..101d05fddd 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -596,7 +596,7 @@ module ActiveSupport Proc.new do |target, result_lambda| terminate = true catch(:abort) do - result_lambda.call if result_lambda.is_a?(Proc) + result_lambda.call terminate = false end terminate -- cgit v1.2.3