From d7c06a3932f7b0860d37cb1cc685f46c6b827252 Mon Sep 17 00:00:00 2001 From: Aditya Kapoor Date: Sat, 31 May 2014 23:44:34 +0530 Subject: [ci skip] correct doc for ActionView::Helpers::DebugHelper --- actionview/lib/action_view/helpers/debug_helper.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'actionview') 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) # # => #
--- !ruby/object:User
       #   attributes:
       #     updated_at:
       #     username: testing
-      #
       #     age: 42
       #     password: xyz
       #     created_at:
-      #   attributes_cache: {}
-      #
-      #   new_record: true
       #   
def debug(object) Marshal::dump(object) -- cgit v1.2.3