mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 03:06:12 +00:00
use explicit autoloads rather than from paths
This commit is contained in:
@@ -27,7 +27,7 @@ module Postal
|
||||
end
|
||||
|
||||
# Include from lib
|
||||
config.eager_load_paths += %W(#{config.root}/lib #{config.root}/app/jobs)
|
||||
config.eager_load_namespaces << Postal
|
||||
|
||||
# Disable field_with_errors
|
||||
config.action_view.field_error_proc = Proc.new { |t, i| t }
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
require 'postal/error'
|
||||
require 'postal'
|
||||
require 'postal/message_db/mysql'
|
||||
|
||||
Reference in New Issue
Block a user