socialforge/config/initializers/30-redmine.rb

17 lines
426 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
I18n.default_locale = 'en'
I18n.backend = Redmine::I18n::Backend.new
require 'redmine'
2015-04-02 17:20:52 +08:00
require 'trustie'
2013-08-01 10:33:49 +08:00
# Load the secret token from the Redmine configuration file
secret = Redmine::Configuration['secret_token']
if secret.present?
RedmineApp::Application.config.secret_token = secret
end
Redmine::Plugin.load
unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
Redmine::Plugin.mirror_assets
end