lib/active_notifier.rb in active_notifier-0.4.0 vs lib/active_notifier.rb in active_notifier-0.4.1
- old
+ new
@@ -1,15 +1,17 @@
require "net/http"
require "active_support/all"
require "active_adapter"
-require "active_notifier/version"
-require "active_notifier/notifier"
+Dir["#{File.expand_path(__dir__)}/active_notifier/core_ext/**/*.rb"].each { |file| require file }
+require "active_notifier/configurable"
+require "active_notifier/notifiable"
+
+# Notify message through webhooks
module ActiveNotifier
extend ActiveSupport::Autoload
- autoload :Configurable
- autoload :Notifiable
+ autoload :Notifier
eager_autoload do
autoload_at "active_notifier/errors" do
autoload :Error
autoload :ConfigureError