aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-06-21 00:39:32 +0200
committerXavier Noria <fxn@hashref.com>2010-06-21 00:40:00 +0200
commitb5fe014fdcc285f3bcb8779c4f7cfbc5a820856f (patch)
treeb3beaa15b1d8d9f7d217978131cf5f86caf96a32 /railties/lib/rails/engine
parent69fec3ab3fe1135ba949514b482c43ae659a3fa9 (diff)
downloadrails-b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.tar.gz
rails-b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.tar.bz2
rails-b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.zip
files in the lib directory are no longer autoloaded
Conceptually, the lib directory is closer 3rd party libraries than to the application itself. Thus, Rails adds it to Ruby's load path ($LOAD_PATH, $:) but it is no longer included in dependencies' load paths. To enable autoloading back put this in your config/application.rb config.load_paths += %W( #{config.root}/lib )
Diffstat (limited to 'railties/lib/rails/engine')
-rw-r--r--railties/lib/rails/engine/configuration.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/engine/configuration.rb b/railties/lib/rails/engine/configuration.rb
index 446fe0bda9..620a723a04 100644
--- a/railties/lib/rails/engine/configuration.rb
+++ b/railties/lib/rails/engine/configuration.rb
@@ -20,15 +20,19 @@ module Rails
paths.app.models "app/models", :eager_load => true
paths.app.mailers "app/mailers", :eager_load => true
paths.app.views "app/views"
- paths.lib "lib", :load_path => true
+
+ paths.lib "lib"
paths.lib.tasks "lib/tasks", :glob => "**/*.rake"
+
paths.config "config"
paths.config.initializers "config/initializers", :glob => "**/*.rb"
paths.config.locales "config/locales", :glob => "*.{rb,yml}"
paths.config.routes "config/routes.rb"
+
paths.public "public"
paths.public.javascripts "public/javascripts"
paths.public.stylesheets "public/stylesheets"
+
paths
end
end