Module: Grape::Extensions::Hashie::Mash::ParamBuilder

Extended by:
ActiveSupport::Concern
Defined in:
lib/grape/extensions/hashie/mash.rb

Instance Method Summary collapse

Instance Method Details

#build_paramsObject



17
18
19
20
21
# File 'lib/grape/extensions/hashie/mash.rb', line 17

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

#params_builderObject



13
14
15
# File 'lib/grape/extensions/hashie/mash.rb', line 13

def params_builder
  Grape::Extensions::Hashie::Mash::ParamBuilder
end