aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAditya Kapoor <aditya.kapoor@vinsol.com>2014-05-31 23:44:34 +0530
committerAditya Kapoor <aditya.kapoor@vinsol.com>2014-05-31 23:44:34 +0530
commitd7c06a3932f7b0860d37cb1cc685f46c6b827252 (patch)
tree74f60c9920e0fcf20c6a4bd13555ee51d8d20fd7 /actionview
parent4d83c2a27fb5bea5ccba468aaad4a9038a83b2b8 (diff)
downloadrails-d7c06a3932f7b0860d37cb1cc685f46c6b827252.tar.gz
rails-d7c06a3932f7b0860d37cb1cc685f46c6b827252.tar.bz2
rails-d7c06a3932f7b0860d37cb1cc685f46c6b827252.zip
[ci skip] correct doc for ActionView::Helpers::DebugHelper
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/debug_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/actionview/lib/action_view/helpers/debug_helper.rb b/actionview/lib/action_view/helpers/debug_helper.rb
index c29c1b1eea..16cddec339 100644
--- a/actionview/lib/action_view/helpers/debug_helper.rb
+++ b/actionview/lib/action_view/helpers/debug_helper.rb
@@ -11,20 +11,16 @@ module ActionView
# If the object cannot be converted to YAML using +to_yaml+, +inspect+ will be called instead.
# Useful for inspecting an object at the time of rendering.
#
- # @user = User.new({ username: 'testing', password: 'xyz', age: 42}) %>
+ # @user = User.new({ username: 'testing', password: 'xyz', age: 42})
# debug(@user)
# # =>
# <pre class='debug_dump'>--- !ruby/object:User
# attributes:
# &nbsp; updated_at:
# &nbsp; username: testing
- #
# &nbsp; age: 42
# &nbsp; password: xyz
# &nbsp; created_at:
- # attributes_cache: {}
- #
- # new_record: true
# </pre>
def debug(object)
Marshal::dump(object)