Sha256: ffe6b1c56d79fda9f9cc5541a7c4f0678d2ce091459a2104a13a597f2a6dcc29

Contents?: true

Size: 403 Bytes

Versions: 32

Compression:

Stored size: 403 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

32 entries across 32 versions & 2 rubygems

Version Path
eivo-rails-api-0.1.14 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.12 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.13 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.12 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.11 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.11 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.10 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.10 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.9 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.8 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.9 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.8 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.7 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.7 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.6 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.6 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.5 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.4 app/controllers/eivo/concerns/exception.rb
eivo-rails-0.1.5 app/controllers/eivo/concerns/exception.rb
eivo-rails-api-0.1.3 app/controllers/eivo/concerns/exception.rb