use explicit autoloads rather than from paths

This commit is contained in:
Adam Cooke
2017-06-02 15:29:54 +01:00
parent 9f4568e81a
commit 6e009f16b9
9 changed files with 87 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
module Postal
module FastServer
extend ActiveSupport::Autoload
eager_autoload do
autoload :Client
autoload :HTTPHeader
autoload :HTTPHeaderSet
autoload :Interface
autoload :Server
end
end
end
+18
View File
@@ -0,0 +1,18 @@
module Postal
module MessageDB
extend ActiveSupport::Autoload
eager_autoload do
autoload :Click
autoload :Database
autoload :Delivery
autoload :LiveStats
autoload :Load
autoload :Message
autoload :Migration
autoload :Provisioner
autoload :Statistics
autoload :SuppressionList
autoload :Webhooks
end
end
end
+9
View File
@@ -0,0 +1,9 @@
module Postal
module SMTPServer
extend ActiveSupport::Autoload
eager_autoload do
autoload :Client
autoload :Server
end
end
end