From 12ff554cd476bd2c653d9fd331bbcabb71363f3a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 31 Aug 2006 03:16:28 +0000 Subject: Tighten rescue clauses. Closes #5985. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/debug_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/debug_helper.rb b/actionpack/lib/action_view/helpers/debug_helper.rb index 8baea6f450..9e92813a18 100644 --- a/actionpack/lib/action_view/helpers/debug_helper.rb +++ b/actionpack/lib/action_view/helpers/debug_helper.rb @@ -7,7 +7,7 @@ module ActionView begin Marshal::dump(object) "
#{h(object.to_yaml).gsub("  ", "  ")}
" - rescue Object => e + rescue Exception => e # errors from Marshal or YAML # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback "#{h(object.inspect)}" end -- cgit v1.2.3