class Isolator::Configuration
Isolator
configuration:
-
`raise_exceptions` - whether to raise an exception in case of offense; defaults to true in test env and false otherwise. NOTE: env is inferred from RACK_ENV and RAILS_ENV.
-
`logger` - logger instance (nil by default)
-
`send_notifications` - whether to send notifications (through uniform_notifier); defaults to false
-
`backtrace_filter` - define a custom backtrace filtering (provide a callable)
-
`ignorer` - define a custom ignorer (must implement .prepare)
Attributes
backtrace_filter[RW]
ignorer[RW]
logger[RW]
raise_exceptions[RW]
raise_exceptions?[RW]
send_notifications[RW]
send_notifications?[RW]
Public Class Methods
new()
click to toggle source
# File lib/isolator/configuration.rb, line 23 def initialize @logger = nil @raise_exceptions = test_env? @send_notifications = false @backtrace_filter = ->(backtrace) { backtrace.take(5) } @ignorer = Isolator::Ignorer end
Public Instance Methods
test_env?()
click to toggle source
# File lib/isolator/configuration.rb, line 34 def test_env? ENV["RACK_ENV"] == "test" || ENV["RAILS_ENV"] == "test" end