Module: Avo::Concerns::RequestMethods

Included in:
ResourceComponent
Defined in:
lib/avo/concerns/request_methods.rb

Instance Method Summary collapse

Instance Method Details

#referrer_paramsObject



4
5
6
7
8
9
10
# File 'lib/avo/concerns/request_methods.rb', line 4

def referrer_params
  @referrer_params ||= begin
    Rack::Utils.parse_query(URI(request.referrer).query)
  rescue ArgumentError => _e
    {}
  end
end