Module: Watchdocs::Rails::Helpers::QueryStringHelper

Included in:
Middleware
Defined in:
lib/watchdocs/rails/helpers/query_string_helper.rb

Instance Method Summary collapse

Instance Method Details

#parse_query_string(params) ⇒ Object


5
6
7
8
9
10
11
12
# File 'lib/watchdocs/rails/helpers/query_string_helper.rb', line 5

def parse_query_string(params)
  filter_data(
    Rack::Utils.parse_nested_query(params)
  )
rescue StandardError
  $stderr.puts "Query String format not supported. String: #{params}"
  {}
end