diff options
author | Aditya Kapoor <aditya.kapoor@vinsol.com> | 2014-06-14 15:22:09 +0530 |
---|---|---|
committer | Aditya Kapoor <aditya.kapoor@vinsol.com> | 2014-06-14 15:22:09 +0530 |
commit | c782641002b7df1ecd693a6c5c439f3a4c036351 (patch) | |
tree | b73024a48e1d77398193c2d9af16d0c763200a7f /actionview/lib/action_view/helpers | |
parent | 34221cdcab7d145d22029174a990b3971616cc80 (diff) | |
download | rails-c782641002b7df1ecd693a6c5c439f3a4c036351.tar.gz rails-c782641002b7df1ecd693a6c5c439f3a4c036351.tar.bz2 rails-c782641002b7df1ecd693a6c5c439f3a4c036351.zip |
remove unnecessary substitution for space in ActionView::Helpers#debug
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r-- | actionview/lib/action_view/helpers/debug_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionview/lib/action_view/helpers/debug_helper.rb b/actionview/lib/action_view/helpers/debug_helper.rb index 16cddec339..ba47eee9ba 100644 --- a/actionview/lib/action_view/helpers/debug_helper.rb +++ b/actionview/lib/action_view/helpers/debug_helper.rb @@ -16,15 +16,15 @@ module ActionView # # => # <pre class='debug_dump'>--- !ruby/object:User # attributes: - # updated_at: - # username: testing - # age: 42 - # password: xyz - # created_at: + # updated_at: + # username: testing + # age: 42 + # password: xyz + # created_at: # </pre> def debug(object) Marshal::dump(object) - object = ERB::Util.html_escape(object.to_yaml).gsub(" ", " ").html_safe + object = ERB::Util.html_escape(object.to_yaml) 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 |