Sha256: 1e69dba2ddcb0daffb15d60b8cb5766cc38ab93c47c1aaa3f27af015432dd698
Contents?: true
Size: 662 Bytes
Versions: 15
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true module Grape module Extensions module Hash module ParamBuilder extend ::ActiveSupport::Concern included do namespace_inheritable(:build_params_with, Grape::Extensions::Hash::ParamBuilder) end def build_params params = Grape::Extensions::DeepMergeableHash[rack_params] params.deep_merge!(grape_routing_args) if env[Grape::Env::GRAPE_ROUTING_ARGS] post_process_params(params) end def post_process_params(params) Grape::Extensions::DeepSymbolizeHash.deep_symbolize_keys_in(params) end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems