Feature #24808 » fix-plugin-permissions-are-not-loaded.patch
config/initializers/30-redmine.rb | ||
---|---|---|
10 | 10 |
ActiveSupport::XmlMini.backend = 'Nokogiri' |
11 | 11 | |
12 | 12 |
Redmine::Preparation.prepare |
13 |
end |
|
14 | ||
15 |
# Load the secret token from the Redmine configuration file |
|
16 |
secret = Redmine::Configuration['secret_token'] |
|
17 |
if secret.present? |
|
18 |
RedmineApp::Application.config.secret_token = secret |
|
19 |
end |
|
13 | 20 | |
21 |
Redmine::PluginLoader.load |
|
22 | ||
23 |
Rails.application.config.to_prepare do |
|
14 | 24 |
Doorkeeper.configure do |
15 | 25 |
orm :active_record |
16 | 26 | |
... | ... | |
76 | 86 |
Doorkeeper::AuthorizationsController.layout "base" |
77 | 87 |
Doorkeeper::AuthorizedApplicationsController.layout "base" |
78 | 88 |
Doorkeeper::AuthorizedApplicationsController.main_menu = false |
79 |
end |
|
80 | ||
81 |
# Load the secret token from the Redmine configuration file |
|
82 |
secret = Redmine::Configuration['secret_token'] |
|
83 |
if secret.present? |
|
84 |
RedmineApp::Application.config.secret_token = secret |
|
85 |
end |
|
86 | 89 | |
87 |
Redmine::PluginLoader.load |
|
88 | ||
89 |
Rails.application.config.to_prepare do |
|
90 | 90 |
default_paths = [] |
91 | 91 |
default_paths << Rails.root.join("app/assets/javascripts") |
92 | 92 |
default_paths << Rails.root.join("app/assets/images") |
- « Previous
- 1
- …
- 26
- 27
- 28
- Next »