From 6c92e2ca641a535d1614af6a3b52d871f64521b8 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 24 Jul 2013 12:14:17 -0300 Subject: [PATCH] rails3: Add lib directory on load --- config/application.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/application.rb b/config/application.rb index 75d571c..1cc6379 100644 --- a/config/application.rb +++ b/config/application.rb @@ -25,6 +25,9 @@ module Noosfero # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W( #{Rails.root}/app/sweepers ) + config.autoload_paths += Dir["#{config.root}/lib/**/"] + config.autoload_paths += Dir["#{config.root}/app/controllers/**/"] + # 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. @@ -103,8 +106,6 @@ module Noosfero :key => '_noosfero_session', } - config.autoload_paths += Dir["#{config.root}/app/controllers/**/"] - Noosfero::Plugin.setup(config) end -- libgit2 0.21.2