class Airbrake::Rack::HttpParamsFilter
Adds HTTP request parameters.
@since v5.7.0
Attributes
weight[R]
@return [Integer]
Public Class Methods
new()
click to toggle source
# File lib/airbrake/rack/http_params_filter.rb, line 12 def initialize @weight = 97 end
Public Instance Methods
call(notice)
click to toggle source
@see {Airbrake::FilterChain#refine}
# File lib/airbrake/rack/http_params_filter.rb, line 18 def call(notice) return unless (request = notice.stash[:rack_request]) notice[:params].merge!(request.params) rails_params = request.env['action_dispatch.request.parameters'] notice[:params].merge!(rails_params) if rails_params end