Sha256: 30106120038009e93a8a814330ee3ad1070f5b90f1341a72768b9ce5023e3eb6

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

require "net/http"
require "active_support/all"
require "active_adapter"
require "active_notifier/version"
require "active_notifier/notifier"

module ActiveNotifier
  extend ActiveSupport::Autoload

  autoload :Configurable
  autoload :Notifiable

  eager_autoload do
    autoload_at "active_notifier/errors" do
      autoload :Error
      autoload :ConfigureError
      autoload :TemplateNotFoundError
      autoload :UndefinedTokenError
      autoload :AdapterError
    end
  end

  include Configurable
  include Notifiable

  ActiveSupport.on_load(:after_initialize) do
    Kernel.const_set(ActiveNotifier.config.const_name || :Notifier, ActiveNotifier)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_notifier-0.4.0 lib/active_notifier.rb