Commit 0013d55b authored by edavis10's avatar edavis10

Allow a config/additional_environment.rb file to customize the Rails::Initializer.

git-svn-id: https://svn.redmine.org/redmine/trunk@3018 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 514c52ac
/config/additional_environment.rb
/config/database.yml
/config/email.yml
/config/initializers/session_store.rb
......
# Copy this file to additional_environment.rb and add any statements
# that need to be passed to the Rails::Initializer. `config` is
# available in this context.
#
# Example:
#
# config.log_level = :debug
# config.gem "example_plugin", :lib => false
# config.gem "timesheet_plugin", :lib => false, :version => '0.5.0'
# config.gem "aws-s3", :lib => "aws/s3"
# ...
#
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment