aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-05-23 20:48:43 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-05-23 20:48:43 -0300
commit661ed303f49128b92a5a88d25deebcebbc891b55 (patch)
tree68794062a2f667d46aac71001dcf281b1663a6ee /activesupport/lib
parent28492204ee59a5aca2f3bc7b161d45724552686d (diff)
downloadrails-661ed303f49128b92a5a88d25deebcebbc891b55.tar.gz
rails-661ed303f49128b92a5a88d25deebcebbc891b55.tar.bz2
rails-661ed303f49128b92a5a88d25deebcebbc891b55.zip
Revert "Add default exceptions affected by suppress (#25099)"
This reverts commit 28492204ee59a5aca2f3bc7b161d45724552686d. Reason: `suppress` without an argument doesn't actually tell what is supressing. Also, it can be confused with ActiveRecord::Base#suppress.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/reporting.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/reporting.rb b/activesupport/lib/active_support/core_ext/kernel/reporting.rb
index 9e50ea23b7..d0197af95f 100644
--- a/activesupport/lib/active_support/core_ext/kernel/reporting.rb
+++ b/activesupport/lib/active_support/core_ext/kernel/reporting.rb
@@ -37,7 +37,6 @@ module Kernel
#
# puts 'This code gets executed and nothing related to ZeroDivisionError was seen'
def suppress(*exception_classes)
- exception_classes = StandardError if exception_classes.empty?
yield
rescue *exception_classes
end