Load the entire lib folder refactor.
Removed hack, replaced with a proper solution.
This commit is contained in:
parent
679d119d4d
commit
d3f5f34fa0
2 changed files with 4 additions and 6 deletions
|
|
@ -10,6 +10,8 @@
|
|||
* Made number of unicorn workers configurable.
|
||||
* 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.
|
||||
* Remove the hack for loading the entire lib folder with a proper solution. [#3809](https://github.com/diaspora/diaspora/issues/3750)
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
|||
|
|
@ -32,12 +32,8 @@ module Diaspora
|
|||
# -- all .rb files in that directory are automatically loaded.
|
||||
|
||||
# Add additional load paths for your own custom dirs
|
||||
#config.autoload_paths += %W(#{config.root}/lib)
|
||||
config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/presenters)
|
||||
#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/*/*/*)
|
||||
config.autoload_paths += %W(#{config.root}/app/presenters)
|
||||
config.autoload_paths += %W(#{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
|
||||
|
|
|
|||
Loading…
Reference in a new issue