method

params_hash_has_key?

rails latest stable - Class: ActionDispatch::ParamBuilder

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

params_hash_has_key?(hash, key)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/param_builder.rb, line 174
      def params_hash_has_key?(hash, key)
        return false if key.include?("[]")

        key.split(/[\[\]]+/).inject(hash) do |h, part|
          next h if part == ""
          return false unless params_hash_type?(h) && h.key?(part)
          h[part]
        end

        true
      end