Commit 6c92e2ca641a535d1614af6a3b52d871f64521b8
1 parent
f86446fe
Exists in
master
and in
29 other branches
rails3: Add lib directory on load
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
config/application.rb
| ... | ... | @@ -25,6 +25,9 @@ module Noosfero |
| 25 | 25 | |
| 26 | 26 | # Custom directories with classes and modules you want to be autoloadable. |
| 27 | 27 | config.autoload_paths += %W( #{Rails.root}/app/sweepers ) |
| 28 | + config.autoload_paths += Dir["#{config.root}/lib/**/"] | |
| 29 | + config.autoload_paths += Dir["#{config.root}/app/controllers/**/"] | |
| 30 | + | |
| 28 | 31 | |
| 29 | 32 | # Only load the plugins named here, in the order given (default is alphabetical). |
| 30 | 33 | # :all can be used as a placeholder for all plugins not explicitly named. |
| ... | ... | @@ -103,8 +106,6 @@ module Noosfero |
| 103 | 106 | :key => '_noosfero_session', |
| 104 | 107 | } |
| 105 | 108 | |
| 106 | - config.autoload_paths += Dir["#{config.root}/app/controllers/**/"] | |
| 107 | - | |
| 108 | 109 | Noosfero::Plugin.setup(config) |
| 109 | 110 | |
| 110 | 111 | end | ... | ... |