diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2014-05-31 13:29:13 -0500 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2014-05-31 13:29:13 -0500 |
commit | ae12f79801c9c1cbe3d98cdb548cc5e4d45e676f (patch) | |
tree | 56eb8a83214809a057f8074ff453fd04bc259727 | |
parent | 84d956e3f4c2cbf887d28b07372a421b5189f09d (diff) | |
parent | d7c06a3932f7b0860d37cb1cc685f46c6b827252 (diff) | |
download | rails-ae12f79801c9c1cbe3d98cdb548cc5e4d45e676f.tar.gz rails-ae12f79801c9c1cbe3d98cdb548cc5e4d45e676f.tar.bz2 rails-ae12f79801c9c1cbe3d98cdb548cc5e4d45e676f.zip |
Merge pull request #15449 from aditya-kapoor/correct-debug-doc
[ci skip] correct doc for ActionView::Helpers::DebugHelper
-rw-r--r-- | actionview/lib/action_view/helpers/debug_helper.rb | 6 |
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: # updated_at: # username: testing - # # age: 42 # password: xyz # created_at: - # attributes_cache: {} - # - # new_record: true # </pre> def debug(object) Marshal::dump(object) |