Module: Grape::Extensions::ActiveSupport::HashWithIndifferentAccess::ParamBuilder

Extended by:
ActiveSupport::Concern
Defined in:
lib/grape/extensions/active_support/hash_with_indifferent_access.rb

Instance Method Summary collapse

Instance Method Details

#build_paramsObject



18
19
20
21
22
# File 'lib/grape/extensions/active_support/hash_with_indifferent_access.rb', line 18

def build_params
  ::ActiveSupport::HashWithIndifferentAccess.new(rack_params).tap do |params|
    params.deep_merge!(grape_routing_args) if env.key?(Grape::Env::GRAPE_ROUTING_ARGS)
  end
end

#params_builderObject



14
15
16
# File 'lib/grape/extensions/active_support/hash_with_indifferent_access.rb', line 14

def params_builder
  Grape::Extensions::ActiveSupport::HashWithIndifferentAccess::ParamBuilder
end