instance method
debug_hash
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v5.2.8.1Signature
debug_hash(object)
No documentation comment.
Parameters
-
objectreq
Source
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 38
def debug_hash(object)
object.to_hash.sort_by { |k, _| k.to_s }.map { |k, v| "#{k}: #{v.inspect rescue $!.message}" }.join("\n")
end
Defined in actionpack/lib/action_dispatch/middleware/debug_exceptions.rb line 38
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::DebugExceptions::DebugView