lib/grape/extensions/hash.rb in grape-1.7.1 vs lib/grape/extensions/hash.rb in grape-1.8.0

- old
+ new

@@ -9,16 +9,13 @@ 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) + rack_params.deep_dup.tap do |params| + params.deep_merge!(grape_routing_args) if env.key?(Grape::Env::GRAPE_ROUTING_ARGS) + params.deep_symbolize_keys! + end end end end end end