summaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-11-08 02:16:42 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-11-08 02:16:42 +0000
commite02caeab0f0764c7b661df89bf546ff33a0c8b35 (patch)
tree445abfa093d974a9759b01dec6020f3c57ed1900 /config/environment.rb
parent87d14dea105ef248c14e76dd3cd1086ae7a93dc6 (diff)
downloadredmine-e02caeab0f0764c7b661df89bf546ff33a0c8b35.tar.gz
redmine-e02caeab0f0764c7b661df89bf546ff33a0c8b35.zip
Allow a config/additional_environment.rb file to customize the Rails::Initializer.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3018 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb
index d173db412..e6d42592f 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -49,4 +49,10 @@ Rails::Initializer.run do |config|
# Define your email configuration in email.yml instead.
# It will automatically turn deliveries on
config.action_mailer.perform_deliveries = false
+
+ # Load any local configuration that is kept out of source control
+ # (e.g. gems, patches).
+ if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
+ instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
+ end
end