Sha256: 715c27cb1f86148833ddf0bba52d2ddbc64b6653e4f82b0c7603733a60569dc2

Contents?: true

Size: 393 Bytes

Versions: 15

Compression:

Stored size: 393 Bytes

Contents

module Grape
  class Endpoint
    alias_method :old_params, :params

    # Grape::Endpoint#params is an attr_reader that returns Grape::Request#params.
    # The latter params method returns a Hashie::Mash with Strings as keys.
    #
    # https://github.com/intridea/grape/blob/v0.6.1/lib/grape/http/request.rb#L6
    def params
      old_params.to_hash.deep_symbolize_keys
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 lib/mb/grape_ext/endpoint.rb
motherbrain-1.4.0 lib/mb/grape_ext/endpoint.rb
motherbrain-1.3.0 lib/mb/grape_ext/endpoint.rb
motherbrain-1.2.1 lib/mb/grape_ext/endpoint.rb
motherbrain-1.2.0 lib/mb/grape_ext/endpoint.rb
motherbrain-1.1.3 lib/mb/grape_ext/endpoint.rb
motherbrain-1.1.2 lib/mb/grape_ext/endpoint.rb
motherbrain-1.1.1 lib/mb/grape_ext/endpoint.rb
motherbrain-1.1.0 lib/mb/grape_ext/endpoint.rb
motherbrain-1.0.0 lib/mb/grape_ext/endpoint.rb
motherbrain-0.14.5 lib/mb/grape_ext/endpoint.rb
motherbrain-0.14.4 lib/mb/grape_ext/endpoint.rb
motherbrain-0.14.3 lib/mb/grape_ext/endpoint.rb
motherbrain-0.14.2 lib/mb/grape_ext/endpoint.rb
motherbrain-0.13.1 lib/mb/grape_ext/endpoint.rb