diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-03-05 15:19:44 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-03-05 15:19:44 -0800 |
commit | 5eaeb3708059aa23ed1c250219082c508e58c6e5 (patch) | |
tree | 758359b4f2d07f0ad485ed5ccb5883d5231fe343 /actionview/lib | |
parent | ff18049ca6f27deb7e7f955478e1464f8d756332 (diff) | |
download | rails-5eaeb3708059aa23ed1c250219082c508e58c6e5.tar.gz rails-5eaeb3708059aa23ed1c250219082c508e58c6e5.tar.bz2 rails-5eaeb3708059aa23ed1c250219082c508e58c6e5.zip |
don't need to rescue Exception in this case
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/debug_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/debug_helper.rb b/actionview/lib/action_view/helpers/debug_helper.rb index ba47eee9ba..e9dccbad1c 100644 --- a/actionview/lib/action_view/helpers/debug_helper.rb +++ b/actionview/lib/action_view/helpers/debug_helper.rb @@ -26,7 +26,7 @@ module ActionView Marshal::dump(object) object = ERB::Util.html_escape(object.to_yaml) content_tag(:pre, object, :class => "debug_dump") - rescue Exception # errors from Marshal or YAML + rescue # errors from Marshal or YAML # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback content_tag(:code, object.inspect, :class => "debug_dump") end |