diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-17 20:27:03 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-17 20:27:03 +0000 |
commit | c1a52510ea1d20990b047e8b2aa8a7154a931f1b (patch) | |
tree | a3310071e09c0b9c8830c8e1756ddb6cd40c3d72 /railties/environments | |
parent | 911f3db00abb7b35b400973c032e4e5c340bce6f (diff) | |
download | rails-c1a52510ea1d20990b047e8b2aa8a7154a931f1b.tar.gz rails-c1a52510ea1d20990b047e8b2aa8a7154a931f1b.tar.bz2 rails-c1a52510ea1d20990b047e8b2aa8a7154a931f1b.zip |
Added config.plugins to control which plugins are loaded #6269 [skaes]. By default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/environment.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index ae63a4aa39..0bc8fda299 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -11,12 +11,15 @@ require File.join(File.dirname(__FILE__), 'boot') Rails::Initializer.run do |config| - # Settings in config/environments/* take precedence those specified here + # Settings in config/environments/* take precedence over those specified here # Skip frameworks you're not going to use (only works if using vendor/rails) # config.frameworks -= [ :action_web_service, :action_mailer ] - # Add additional load paths for your own custom dirs + # 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) # config.load_paths += %W( #{RAILS_ROOT}/extras ) # Force all environments to use the same logger level |