Sha256: 8b80a5ddfd8afa707e5de0f230836ef63394d21af03c600f72498026264ffdb8

Contents?: true

Size: 781 Bytes

Versions: 2

Compression:

Stored size: 781 Bytes

Contents

require "net/http"
require "active_support/all"
require "active_adapter"

Dir["#{File.expand_path(__dir__)}/active_notifier/core_ext/**/*.rb"].each { |file| require file }
require "active_notifier/configurable"
require "active_notifier/notifiable"

# Notify message through webhooks
module ActiveNotifier
  extend ActiveSupport::Autoload

  autoload :Notifier

  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

2 entries across 2 versions & 1 rubygems

Version Path
active_notifier-0.4.2 lib/active_notifier.rb
active_notifier-0.4.1 lib/active_notifier.rb