Sha256: 5e868c842e6c0adef8da7ec0253277cc24ba7159ec81bf156d008cd1b2549844

Contents?: true

Size: 404 Bytes

Versions: 11

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module EIVO
  module Concerns
    module Exception

      extend ::ActiveSupport::Concern

      included do
        before_action :set_exception_context
      end

      def set_exception_context
        ::Raven.extra_context(
          params: params.to_unsafe_h,
          url: request.url,
          request_id: request.request_id
        )
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
eivo-rails-0.0.4 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.7 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.6 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.0.3 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.5 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.4 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.0.2 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.0.1 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.3 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.2 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.0.1 app/controllers/eivo/concerns/exception.rb