lib/nitro/helper/debug.rb in nitro-0.31.0 vs lib/nitro/helper/debug.rb in nitro-0.40.0

- old
+ new

@@ -14,17 +14,15 @@ def debug(object) begin Marshal::dump(object) "<pre class='debug_dump'>#{object.to_yaml.gsub(" ", "&nbsp; ")}</pre>" - rescue Object + rescue TypeError => ex # Object couldn't be dumped, perhaps because of singleton # methods, this is the fallback. "<code class='debug_dump'>#{object.inspect}</code>" end end end end - -# * George Moschovitis <gm@navel.gr>