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 :ChannelUndefinedError autoload :MessageBlankError autoload :AdapterWebhookInvalidError autoload :AdapterTypeInvalidError autoload :AdapterOptionsInvalidError 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, ActiveNotifier) end end