aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2006-10-24 07:26:18 +0000
committerMichael Koziarski <michael@koziarski.com>2006-10-24 07:26:18 +0000
commitc08997405d1329e7cb1ade70ca2b26e47a8d09da (patch)
treecbc55d38993cc35acc47aca49155dadd8f67ca59
parent0c94868f67404a7989d4743910be1752dd67c58d (diff)
downloadrails-c08997405d1329e7cb1ade70ca2b26e47a8d09da.tar.gz
rails-c08997405d1329e7cb1ade70ca2b26e47a8d09da.tar.bz2
rails-c08997405d1329e7cb1ade70ca2b26e47a8d09da.zip
Update environment.rb comments to include config.autoload_paths. Closes #6478 [caio]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/environments/environment.rb6
2 files changed, 7 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index f6dc8f238f..16129e7f2d 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Update environment.rb comments to include config.autoload_paths. Closes #6478 [caio]
+
* Update scaffold to use new form_tag block functionality. Closes #6480. [BobSilva]
* Plugin generator: check for class collisions. #4833 [vinbarnes@gmail.com]
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index 0bc8fda299..71cb1667f4 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -19,9 +19,13 @@ Rails::Initializer.run do |config|
# Only load the plugins named here, by default all plugins in vendor/plugins are loaded
# config.plugins = %W( exception_notification ssl_requirement )
- # Add additional load paths (these paths will be subject to auto-loading of constants)
+ # Add additional load paths (these are searched when explicitly require something)
# config.load_paths += %W( #{RAILS_ROOT}/extras )
+ # Add additional autoloading load paths
+ # (these paths will be subject to auto-loading of constants)
+ # config.autoload_paths += Dir["#{RAILS_ROOT}/models/*/"]
+
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)
# config.log_level = :debug