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
11
11
# If the object cannot be converted to YAML using +to_yaml+, +inspect+ will be called instead.
12
12
# Useful for inspecting an object at the time of rendering.
13
13
#
14
- # @user = User.new({ username: 'testing', password: 'xyz', age: 42}) %>
14
+ # @user = User.new({ username: 'testing', password: 'xyz', age: 42})
15
15
# debug(@user)
16
16
# # =>
17
17
# <pre class='debug_dump'>--- !ruby/object:User
18
18
# attributes:
19
19
# updated_at:
20
20
# username: testing
21
- #
22
21
# age: 42
23
22
# password: xyz
24
23
# created_at:
25
- # attributes_cache: {}
26
- #
27
- # new_record: true
28
24
# </pre>
29
25
def debug ( object )
30
26
Marshal ::dump ( object )
You can’t perform that action at this time.
0 commit comments