Reload lib in development mode only
This commit is contained in:
parent
b78958fbfc
commit
39cfffce2d
|
@ -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 ]
|
||||
|
|
Loading…
Reference in New Issue