File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
actionview/lib/action_view/helpers Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,16 @@ module DebugHelper
1111 # If the object cannot be converted to YAML using +to_yaml+, +inspect+ will be called instead.
1212 # Useful for inspecting an object at the time of rendering.
1313 #
14- # @user = User.new({ username: 'testing', password: 'xyz', age: 42}) %>
14+ # @user = User.new({ username: 'testing', password: 'xyz', age: 42})
1515 # debug(@user)
1616 # # =>
1717 # <pre class='debug_dump'>--- !ruby/object:User
1818 # attributes:
1919 # updated_at:
2020 # username: testing
21- #
2221 # age: 42
2322 # password: xyz
2423 # created_at:
25- # attributes_cache: {}
26- #
27- # new_record: true
2824 # </pre>
2925 def debug ( object )
3026 Marshal ::dump ( object )
You can’t perform that action at this time.
0 commit comments