Benjamin Neff 2017-08-12 16:33:32 +02:00
parent 5905645d0f
commit 04c3880d79
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 3 additions and 2 deletions

View file

@ -35,8 +35,8 @@ module Diaspora
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W{#{config.root}/app}
config.autoload_once_paths += %W{#{config.root}/lib}
config.autoload_paths += %W[#{config.root}/app]
config.autoload_once_paths += %W[#{config.root}/lib]
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.

View file

@ -9,6 +9,7 @@ Rails.application.configure do
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
config.eager_load = true
config.eager_load_paths += %W[#{config.root}/lib]
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false