Sha256: 7faebdc214de6217f940bbb6764e9dd1d4ace9d425162cbde564514755968c0b
Contents?: true
Size: 766 Bytes
Versions: 15
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true module Grape module Extensions module ActiveSupport module HashWithIndifferentAccess module ParamBuilder extend ::ActiveSupport::Concern included do namespace_inheritable(:build_params_with, Grape::Extensions::ActiveSupport::HashWithIndifferentAccess::ParamBuilder) end def params_builder Grape::Extensions::ActiveSupport::HashWithIndifferentAccess::ParamBuilder end def build_params params = ::ActiveSupport::HashWithIndifferentAccess.new(rack_params) params.deep_merge!(grape_routing_args) if env[Grape::Env::GRAPE_ROUTING_ARGS] params end end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems