Class: Grape::Endpoint
- Inherits:
-
Object
- Object
- Grape::Endpoint
- Defined in:
- lib/mb/grape_ext/endpoint.rb
Instance Method Summary collapse
- #old_params ⇒ Object
-
#params ⇒ Object
Grape::Endpoint#params is an attr_reader that returns Grape::Request#params.
Instance Method Details
#old_params ⇒ Object
3 |
# File 'lib/mb/grape_ext/endpoint.rb', line 3 alias_method :old_params, :params |
#params ⇒ Object
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 |