Class: ActiveError::ErrorSubscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/active_error/railtie.rb

Instance Method Summary collapse

Instance Method Details

#report(exception, context:, handled:, **_opts) ⇒ Object



5
6
7
8
9
# File 'lib/active_error/railtie.rb', line 5

def report(exception, context:, handled:, **_opts)
  return if Rails.env.local? || handled

  Captor.new(exception:, request: context[:active_error_request]).capture
end