method

debug_hash

rails latest stable - Class: ActionDispatch::DebugExceptions::DebugView

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

debug_hash(object)
public

No documentation available.

# 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