Method: ActionDispatch::DebugView#debug_hash
- Defined in:
- actionpack/lib/action_dispatch/middleware/debug_view.rb
#debug_hash(object) ⇒ Object
49 50 51 |
# File 'actionpack/lib/action_dispatch/middleware/debug_view.rb', line 49 def debug_hash(object) object.to_hash.sort_by { |k, _| k.to_s }.map { |k, v| "#{k}: #{v.inspect rescue $!.}" }.join("\n") end |