require "active_notifier/version" require "active_support" require "active_support/all" module ActiveNotifier extend ActiveSupport::Autoload autoload :Configurable autoload :Core autoload :Adaptable eager_autoload do autoload_at "active_notifier/errors" do autoload :Error autoload :ConfigureError autoload :TemplateNotFoundError autoload :MessageBlankError autoload :AdapterTypeInvalidError autoload :AdapterOptionsInvalidError autoload :UndefinedTokenError end end autoload_under "adapters" do autoload :AbstractAdapter autoload :DingtalkAdapter end include Configurable include Core include Adaptable ActiveSupport.on_load(:after_initialize) do Kernel.const_set(ActiveNotifier.config.const_name || :Notifier, ActiveNotifier) end end