Load the entire lib folder refactor.

Removed hack, replaced with a proper solution.
This commit is contained in:
Blaž Hrastnik 2012-12-30 10:26:03 +01:00
parent 679d119d4d
commit d3f5f34fa0
2 changed files with 4 additions and 6 deletions

View file

@ -10,6 +10,8 @@
* Made number of unicorn workers configurable. * Made number of unicorn workers configurable.
* Made loading of the configuration environment independent of Rails. * Made loading of the configuration environment independent of Rails.
* Do not generate paths like `/a/b/c/config/boot.rb/../../Gemfile` to require and open things, create a proper path instead. * Do not generate paths like `/a/b/c/config/boot.rb/../../Gemfile` to require and open things, create a proper path instead.
* Remove the hack for loading the entire lib folder with a proper solution. [#3809](https://github.com/diaspora/diaspora/issues/3750)
## Features ## Features

View file

@ -32,12 +32,8 @@ module Diaspora
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs # Add additional load paths for your own custom dirs
#config.autoload_paths += %W(#{config.root}/lib) config.autoload_paths += %W(#{config.root}/app/presenters)
config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/presenters) config.autoload_paths += %W(#{config.root}/lib)
#OMG HAX PLZ FIX MAKE ALL LIB AUTOLOAD KTHNX
config.autoload_paths += %W(#{config.root}/lib/*)
config.autoload_paths += %W(#{config.root}/lib/*/*)
config.autoload_paths += %W(#{config.root}/lib/*/*/*)
# Only load the plugins named here, in the order given (default is alphabetical). # 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 # :all can be used as a placeholder for all plugins not explicitly named