Mercurial > hg > soundsoftware-site
annotate config/initializers/30-redmine.rb @ 1466:834828a14f2b bug_598
Close obsolete branch bug_598
author | Chris Cannam |
---|---|
date | Fri, 21 Jun 2013 14:51:55 +0100 |
parents | 433d4f72a19b |
children | 261b3d9a4903 |
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@1115 | 12 Redmine::Plugin.load |
Chris@1115 | 13 unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false |
Chris@1115 | 14 Redmine::Plugin.mirror_assets |
Chris@1115 | 15 end |