lib/active_notifier.rb in active_notifier-0.3.0 vs lib/active_notifier.rb in active_notifier-0.4.0

- old
+ new

@@ -1,34 +1,28 @@ -require "active_notifier/version" +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 :Core - autoload :Adaptable + autoload :Notifiable eager_autoload do autoload_at "active_notifier/errors" do autoload :Error autoload :ConfigureError autoload :TemplateNotFoundError - autoload :MessageBlankError - autoload :AdapterTypeInvalidError - autoload :AdapterOptionsInvalidError autoload :UndefinedTokenError + autoload :AdapterError end end - autoload_under "adapters" do - autoload :AbstractAdapter - autoload :DingtalkAdapter - end - include Configurable - include Core - include Adaptable + include Notifiable ActiveSupport.on_load(:after_initialize) do Kernel.const_set(ActiveNotifier.config.const_name || :Notifier, ActiveNotifier) end end