Sha256: a624a91afa4055150bdad67b8bf2905d5065664e2a2d48a7851aa03805476481

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 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 "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 :db, {}
end

Version data entries

1 entries across 1 versions & 1 rubygems

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