diff options
author | Bouke van der Bijl <boukevanderbijl@gmail.com> | 2013-02-23 13:54:17 +0100 |
---|---|---|
committer | Bouke van der Bijl <boukevanderbijl@gmail.com> | 2013-02-23 13:54:17 +0100 |
commit | de47fc2c228d9d2dc494954a6897329ddb447349 (patch) | |
tree | f6cbdefdf4696f45eab8e19bf0bc7bba70491867 /actionpack/lib/action_view/helpers/debug_helper.rb | |
parent | 38f347a825cf132b1e0da9402532b40d6ea68522 (diff) | |
download | rails-de47fc2c228d9d2dc494954a6897329ddb447349.tar.gz rails-de47fc2c228d9d2dc494954a6897329ddb447349.tar.bz2 rails-de47fc2c228d9d2dc494954a6897329ddb447349.zip |
Fix debug helper not inspecting on Exception
The debug helper should inspect the object when it can't be converted to YAML, this behavior was changed inĀ 8f8d8eb1465069e2ed9b6f2404aa9d02e785f534.
Diffstat (limited to 'actionpack/lib/action_view/helpers/debug_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/debug_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/debug_helper.rb b/actionpack/lib/action_view/helpers/debug_helper.rb index 34fc23ac1a..c29c1b1eea 100644 --- a/actionpack/lib/action_view/helpers/debug_helper.rb +++ b/actionpack/lib/action_view/helpers/debug_helper.rb @@ -32,7 +32,7 @@ module ActionView content_tag(:pre, object, :class => "debug_dump") rescue Exception # errors from Marshal or YAML # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback - content_tag(:code, object.to_yaml, :class => "debug_dump") + content_tag(:code, object.inspect, :class => "debug_dump") end end end |