Sha256: 75f655af9df886cc32af7395118df75c051534884bc722c5e8b8bed56cbfe958

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

module Airbrake
  module Rack
    ##
    # Adds HTTP session.
    #
    # @since v5.7.0
    class SessionFilter
      ##
      # @see {Airbrake::FilterChain#refine}
      def call(notice)
        return unless (request = notice.stash[:rack_request])

        session = request.session
        notice[:session] = session if session
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
airbrake-6.0.0 lib/airbrake/rack/session_filter.rb
airbrake-5.8.1 lib/airbrake/rack/session_filter.rb
airbrake-5.8.0 lib/airbrake/rack/session_filter.rb
airbrake-5.8.0.rc.3 lib/airbrake/rack/session_filter.rb
airbrake-5.8.0.rc.2 lib/airbrake/rack/session_filter.rb
airbrake-5.8.0.rc.1 lib/airbrake/rack/session_filter.rb
airbrake-5.7.1 lib/airbrake/rack/session_filter.rb
airbrake-5.7.0 lib/airbrake/rack/session_filter.rb
airbrake-5.7.0.rc.1 lib/airbrake/rack/session_filter.rb