lib/active_notifier.rb in active_notifier-0.1.0.pre vs lib/active_notifier.rb in active_notifier-0.1.0
- old
+ new
@@ -12,15 +12,14 @@
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
+ autoload :UndefinedTokenError
end
end
autoload_under "adapters" do
autoload :AbstractAdapter
@@ -30,8 +29,8 @@
include Configurable
include Core
include Adaptable
ActiveSupport.on_load(:after_initialize) do
- Kernel.const_set(ActiveNotifier.config.const_name, ActiveNotifier)
+ Kernel.const_set(ActiveNotifier.config.const_name || :Notifier, ActiveNotifier)
end
end