Sha256: 9d88c6898da9eee5d907180bcc7d90b98271df97e0c86eb37a730482ca9a0c3e

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

# 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"

require "kaminari"

module ExceptionTrack
  class << self
    def config
      return @config if defined?(@config)

      @config = Configuration.new
      @config.environments = %i[development production]
      @config
    end

    def configure(&block)
      config.instance_eval(&block)
    end
  end
end

ExceptionNotification.configure do |config|
  config.add_notifier :exception_track, {}
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exception-track-1.2.0 lib/exception-track.rb