annotate config/initializers/30-redmine.rb @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@0 1 I18n.default_locale = 'en'
Chris@1115 2 I18n.backend = Redmine::I18n::Backend.new
Chris@0 3
Chris@0 4 require 'redmine'
Chris@1115 5
Chris@1115 6 # Load the secret token from the Redmine configuration file
Chris@1115 7 secret = Redmine::Configuration['secret_token']
Chris@1115 8 if secret.present?
Chris@1115 9 RedmineApp::Application.config.secret_token = secret
Chris@1115 10 end
Chris@1115 11
Chris@1464 12 if Object.const_defined?(:OpenIdAuthentication)
Chris@1464 13 openid_authentication_store = Redmine::Configuration['openid_authentication_store']
Chris@1464 14 OpenIdAuthentication.store =
Chris@1464 15 openid_authentication_store.present? ?
Chris@1464 16 openid_authentication_store : :memory
Chris@1464 17 end
Chris@1464 18
Chris@1115 19 Redmine::Plugin.load
Chris@1115 20 unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
Chris@1115 21 Redmine::Plugin.mirror_assets
Chris@1115 22 end