Module: PanStuff::ParamsHelpers

Extended by:
ActiveSupport::Concern
Defined in:
lib/pan_stuff/params_helpers.rb

Instance Method Summary collapse

Instance Method Details

#query_paramsObject



11
12
13
14
15
# File 'lib/pan_stuff/params_helpers.rb', line 11

def query_params
  res = request.query_parameters.deep_transform_keys(&:underscore).deep_symbolize_keys

  parse_query_params(res)
end

#request_paramsObject



7
8
9
# File 'lib/pan_stuff/params_helpers.rb', line 7

def request_params
  request.request_parameters.to_h.deep_symbolize_keys
end