summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-28 11:07:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-28 11:07:59 +0000
commit5985713335eb8579c1df1bee271c6e350797c172 (patch)
tree04456aa5dbec20a530f518d9542f793c919f30aa /config
parent68f8470d4af60c71d024059b96ad53f2968b1bf2 (diff)
downloadredmine-5985713335eb8579c1df1bee271c6e350797c172.tar.gz
redmine-5985713335eb8579c1df1bee271c6e350797c172.zip
Restores plugin assets mirroring on startup, but it can now be disabled in configuration.yml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9561 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/configuration.yml.example6
-rw-r--r--config/initializers/30-redmine.rb3
2 files changed, 9 insertions, 0 deletions
diff --git a/config/configuration.yml.example b/config/configuration.yml.example
index 50de2edcf..9fefdde22 100644
--- a/config/configuration.yml.example
+++ b/config/configuration.yml.example
@@ -148,6 +148,12 @@ default:
# * encrypt data using 'rake db:encrypt RAILS_ENV=production'
database_cipher_key:
+ # Set this to false to disable plugins' assets mirroring on startup.
+ # You can use `rake redmine:plugins:assets` to manually mirror assets
+ # to public/plugin_assets when you install/upgrade a Redmine plugin.
+ #
+ #mirror_plugins_assets_on_startup: false
+
# specific configuration options for production environment
# that overrides the default ones
production:
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb
index 4286081db..58972b023 100644
--- a/config/initializers/30-redmine.rb
+++ b/config/initializers/30-redmine.rb
@@ -5,3 +5,6 @@ I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
require 'redmine'
Redmine::Plugin.load
+unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
+ Redmine::Plugin.mirror_assets
+end