diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-28 11:07:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-28 11:07:59 +0000 |
commit | 5985713335eb8579c1df1bee271c6e350797c172 (patch) | |
tree | 04456aa5dbec20a530f518d9542f793c919f30aa /lib/redmine/plugin.rb | |
parent | 68f8470d4af60c71d024059b96ad53f2968b1bf2 (diff) | |
download | redmine-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 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 1f57c4d0c..090deb535 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -359,6 +359,13 @@ module Redmine #:nodoc: end end + # Mirrors all plugins' assets to public/plugin_assets + def self.mirror_assets + all.each do |plugin| + plugin.mirror_assets + end + end + # The directory containing this plugin's migrations (<tt>plugin/db/migrate</tt>) def migration_directory File.join(Rails.root, 'plugins', id.to_s, 'db', 'migrate') |