aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/debug_helper.rb
diff options
context:
space:
mode:
authorrobertomiranda <rjmaltamar@gmail.com>2013-03-05 09:26:31 -0500
committerrobertomiranda <rjmaltamar@gmail.com>2013-03-05 09:33:42 -0500
commit3bf961d7fd01c79cd6748e7f6531e341e47a6ef1 (patch)
tree800db21ba05588a478824dca4cd3a78bafb105b0 /actionpack/lib/action_view/helpers/debug_helper.rb
parent09d1fb25c30149a04d756d80709a17f2912efb47 (diff)
downloadrails-3bf961d7fd01c79cd6748e7f6531e341e47a6ef1.tar.gz
rails-3bf961d7fd01c79cd6748e7f6531e341e47a6ef1.tar.bz2
rails-3bf961d7fd01c79cd6748e7f6531e341e47a6ef1.zip
change useless gsub to tr
Diffstat (limited to 'actionpack/lib/action_view/helpers/debug_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/debug_helper.rb2
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 c29c1b1eea..db7f9f3494 100644
--- a/actionpack/lib/action_view/helpers/debug_helper.rb
+++ b/actionpack/lib/action_view/helpers/debug_helper.rb
@@ -28,7 +28,7 @@ module ActionView
# </pre>
def debug(object)
Marshal::dump(object)
- object = ERB::Util.html_escape(object.to_yaml).gsub(" ", "&nbsp; ").html_safe
+ object = ERB::Util.html_escape(object.to_yaml).tr(" ", "&nbsp; ").html_safe
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