Sha256: 5ef184c6de46b132cf8acdbfe3c3f87be45972c544ef8f18d637b837782124b6

Contents?: true

Size: 590 Bytes

Versions: 16

Compression:

Stored size: 590 Bytes

Contents

module Airbrake
  module Rack
    ##
    # Adds HTTP request parameters.
    #
    # @since v5.7.0
    class HttpParamsFilter
      ##
      # @return [Integer]
      attr_reader :weight

      def initialize
        @weight = 97
      end

      ##
      # @see {Airbrake::FilterChain#refine}
      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
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
airbrake-7.3.0 lib/airbrake/rack/http_params_filter.rb
airbrake-7.2.1 lib/airbrake/rack/http_params_filter.rb
airbrake-7.2.0 lib/airbrake/rack/http_params_filter.rb
airbrake-7.1.1 lib/airbrake/rack/http_params_filter.rb
airbrake-7.1.0 lib/airbrake/rack/http_params_filter.rb
airbrake-7.0.3 lib/airbrake/rack/http_params_filter.rb
airbrake-7.0.2 lib/airbrake/rack/http_params_filter.rb
airbrake-7.0.1 lib/airbrake/rack/http_params_filter.rb
airbrake-7.0.0 lib/airbrake/rack/http_params_filter.rb
airbrake-6.3.0 lib/airbrake/rack/http_params_filter.rb
airbrake-6.2.1 lib/airbrake/rack/http_params_filter.rb
airbrake-6.2.0 lib/airbrake/rack/http_params_filter.rb
airbrake-6.1.2 lib/airbrake/rack/http_params_filter.rb
airbrake-6.1.1 lib/airbrake/rack/http_params_filter.rb
airbrake-6.1.0 lib/airbrake/rack/http_params_filter.rb
airbrake-6.1.0.rc.1 lib/airbrake/rack/http_params_filter.rb