Sha256: 8782bd1e7da4281ccafe67c5dd3469378bccc60909e3dbfd29beabb594626b70

Contents?: true

Size: 653 Bytes

Versions: 15

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Extensions
    module Hashie
      module Mash
        module ParamBuilder
          extend ::ActiveSupport::Concern
          included do
            namespace_inheritable(:build_params_with, Grape::Extensions::Hashie::Mash::ParamBuilder)
          end

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

          def build_params
            params = ::Hashie::Mash.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

Version Path
grape-1.7.1 lib/grape/extensions/hashie/mash.rb
grape-1.7.0 lib/grape/extensions/hashie/mash.rb
grape-1.6.2 lib/grape/extensions/hashie/mash.rb
grape-1.6.1 lib/grape/extensions/hashie/mash.rb
grape-1.6.0 lib/grape/extensions/hashie/mash.rb
grape-1.5.3 lib/grape/extensions/hashie/mash.rb
grape-1.5.2 lib/grape/extensions/hashie/mash.rb
grape-1.5.1 lib/grape/extensions/hashie/mash.rb
grape-1.5.0 lib/grape/extensions/hashie/mash.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/lib/grape/extensions/hashie/mash.rb
grape-1.4.0 lib/grape/extensions/hashie/mash.rb
grape-1.3.3 lib/grape/extensions/hashie/mash.rb
grape-1.3.2 lib/grape/extensions/hashie/mash.rb
grape-1.3.1 lib/grape/extensions/hashie/mash.rb
grape-1.3.0 lib/grape/extensions/hashie/mash.rb