aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/environment.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-10-17 20:27:03 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-10-17 20:27:03 +0000
commitc1a52510ea1d20990b047e8b2aa8a7154a931f1b (patch)
treea3310071e09c0b9c8830c8e1756ddb6cd40c3d72 /railties/environments/environment.rb
parent911f3db00abb7b35b400973c032e4e5c340bce6f (diff)
downloadrails-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/environment.rb')
-rw-r--r--railties/environments/environment.rb7
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