diff options
author | Alex Legler <alex@a3li.li> | 2011-08-16 14:38:13 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2011-08-16 14:38:13 +0200 |
commit | cfecdf8728c05db437e88fea36947f0c2ba69116 (patch) | |
tree | ca28456f2d53ccde22348560866816793e8c53c5 /config | |
parent | Move assets from public/ to app/assets/ (diff) | |
download | glsamaker-cfecdf8728c05db437e88fea36947f0c2ba69116.tar.gz glsamaker-cfecdf8728c05db437e88fea36947f0c2ba69116.tar.bz2 glsamaker-cfecdf8728c05db437e88fea36947f0c2ba69116.zip |
Only autoload lib/, not lib/**/
This avoids a bug with the activesupport class loading in development mode.
For instance, when looking for the 'Bug' model, it expected the lib/bugzilla/bug.rb
file to define the class.
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 22fae9f..13cd6b3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -15,7 +15,8 @@ module Glsamaker # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) - config.autoload_paths += Dir["#{config.root}/lib/**/"] + # config.autoload_paths += Dir["#{config.root}/lib/**/"] + config.autoload_paths += ["#{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. |