aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/callbacks.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-06-28 11:22:33 -0400
committerGitHub <noreply@github.com>2017-06-28 11:22:33 -0400
commitb64a66a1fee2dd37913cb3a449e453403eb91a79 (patch)
tree156ba2024a1603f7b803049a073fbf040b96bfed /activesupport/lib/active_support/callbacks.rb
parent9fdebb17ff5f88a7cd65779efdd583f01a8717a7 (diff)
parent2768cd1d746f448f00e0aa4f955e1afdabb2e902 (diff)
downloadrails-b64a66a1fee2dd37913cb3a449e453403eb91a79.tar.gz
rails-b64a66a1fee2dd37913cb3a449e453403eb91a79.tar.bz2
rails-b64a66a1fee2dd37913cb3a449e453403eb91a79.zip
Merge pull request #29595 from fatkodima/result_lambda_class_checking
Remove useless class checking for `ActiveSupport::Callbacks`s result_lambda
Diffstat (limited to 'activesupport/lib/active_support/callbacks.rb')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 54f8321606..df18c35199 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