Reload lib in development mode only

This commit is contained in:
Robin Ward 2017-08-16 11:14:49 -04:00
parent b78958fbfc
commit 39cfffce2d
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ module Discourse
config.autoload_paths += Dir["#{config.root}/lib/validators/"]
config.autoload_paths += Dir["#{config.root}/app"]
if Rails.env.development?
config.autoload_paths += Dir["#{config.root}/lib"]
end
# 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.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]