aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/callbacks.rb
diff options
context:
space:
mode:
authorfatkodima <fatkodima@rambler.ru>2017-06-27 21:34:28 +0300
committerfatkodima <fatkodima@rambler.ru>2017-06-27 21:34:28 +0300
commit2768cd1d746f448f00e0aa4f955e1afdabb2e902 (patch)
tree05f30051f7da318fab953993f3139c9c57a7af9c /activesupport/lib/active_support/callbacks.rb
parentfaa225fd029180cb06287be36fad6c742e8e8261 (diff)
downloadrails-2768cd1d746f448f00e0aa4f955e1afdabb2e902.tar.gz
rails-2768cd1d746f448f00e0aa4f955e1afdabb2e902.tar.bz2
rails-2768cd1d746f448f00e0aa4f955e1afdabb2e902.zip
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 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