From c08997405d1329e7cb1ade70ca2b26e47a8d09da Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 24 Oct 2006 07:26:18 +0000 Subject: 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 --- railties/CHANGELOG | 2 ++ railties/environments/environment.rb | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3