summaryrefslogtreecommitdiffstats
path: root/lib/redmine/plugin_loader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/plugin_loader.rb')
-rw-r--r--lib/redmine/plugin_loader.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/redmine/plugin_loader.rb b/lib/redmine/plugin_loader.rb
index 7b05a8a3d..1d2f2db48 100644
--- a/lib/redmine/plugin_loader.rb
+++ b/lib/redmine/plugin_loader.rb
@@ -136,8 +136,12 @@ module Redmine
@plugin_directories
end
- def self.mirror_assets
- directories.each(&:mirror_assets)
+ def self.mirror_assets(name=nil)
+ if name.present?
+ directories.find{|d| d.to_s == File.join(directory, name)}.mirror_assets
+ else
+ directories.each(&:mirror_assets)
+ end
end
end
end