1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Bouke van der Bijl 2013-02-23 13:54:17 +01:00
parent 38f347a825
commit de47fc2c22

View file

@ -32,7 +32,7 @@ module ActionView
content_tag(:pre, object, :class => "debug_dump") content_tag(:pre, object, :class => "debug_dump")
rescue Exception # errors from Marshal or YAML rescue Exception # errors from Marshal or YAML
# Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback # 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 end
end end