Permalink
Browse files

Load the entire lib folder refactor.

Removed hack, replaced with a proper solution.
  • Loading branch information...
1 parent 679d119 commit d3f5f34fa0db04b3785fb5497bd5350b25737702 Blaž Hrastnik committed Dec 30, 2012
Showing with 4 additions and 6 deletions.
  1. +2 −0 Changelog.md
  2. +2 −6 config/application.rb
View
@@ -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
View
@@ -32,12 +32,8 @@ class Application < Rails::Application
# -- 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

0 comments on commit d3f5f34

Please sign in to comment.