summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-16 14:38:13 +0200
committerAlex Legler <alex@a3li.li>2011-08-16 14:38:13 +0200
commitcfecdf8728c05db437e88fea36947f0c2ba69116 (patch)
treeca28456f2d53ccde22348560866816793e8c53c5 /config
parentMove assets from public/ to app/assets/ (diff)
downloadglsamaker-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.rb3
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.