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