Autoload lib folder to pick up more changes in development mode

This commit is contained in:
Robin Ward 2017-08-13 14:17:38 -04:00
parent de642e0b0e
commit 156347ea7a
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ module Discourse
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += Dir["#{config.root}/app/serializers"]
config.autoload_paths += Dir["#{config.root}/lib/validators/"]
config.autoload_paths += Dir["#{config.root}/lib"]
config.autoload_paths += Dir["#{config.root}/app"]
# Only load the plugins named here, in the order given (default is alphabetical).