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



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

def build_params
  params = ::ActiveSupport::HashWithIndifferentAccess[rack_params]
  params.deep_merge!(grape_routing_args) if env[Grape::Env::GRAPE_ROUTING_ARGS]
  # TODO: remove, in Rails 4 or later ::ActiveSupport::HashWithIndifferentAccess converts nested Hashes into indifferent access ones
  DeepHashWithIndifferentAccess.deep_hash_with_indifferent_access(params)
end

#params_builderObject



12
13
14
# File 'lib/grape/extensions/active_support/hash_with_indifferent_access.rb', line 12

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