lib/exception-track.rb in exception-track-0.6.2 vs lib/exception-track.rb in exception-track-1.0.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
require "exception-track/version"
require "exception-track/configuration"
+require "exception-track/log_subscriber"
require "exception-track/engine"
require "exception_notification"
require "exception_notification/rails"
require "exception_notifier/exception_track_notifier"
@@ -12,9 +13,10 @@
module ExceptionTrack
class << self
def config
return @config if defined?(@config)
+
@config = Configuration.new
@config.environments = %i[development production]
@config
end