Class: Grape::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/mb/grape_ext/endpoint.rb

Instance Method Summary collapse

Instance Method Details

#old_paramsObject



3
# File 'lib/mb/grape_ext/endpoint.rb', line 3

alias_method :old_params, :params

#paramsObject

Grape::Endpoint#params is an attr_reader that returns Grape::Request#params. The latter params method returns a Hashie::Mash with Strings as keys.

github.com/intridea/grape/blob/v0.6.1/lib/grape/http/request.rb#L6



9
10
11
# File 'lib/mb/grape_ext/endpoint.rb', line 9

def params
  old_params.to_hash.deep_symbolize_keys
end