From c281dd2c1eec72576a6b57c45bfdcb05aaf57b20 Mon Sep 17 00:00:00 2001 From: Shiv Kumar Date: Fri, 17 Jan 2014 15:35:52 -0800 Subject: [PATCH] sub space for underscore in 'name' when registering public folder in plugin --- lib/plugin/instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index 0516cdc28..8888a8cb3 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -177,7 +177,7 @@ class Plugin::Instance if Dir.exists?(public_data) target = Rails.root.to_s + "/public/plugins/" `mkdir -p #{target}` - target << name + target << name.gsub(/\s/,"_") # TODO a cleaner way of registering and unregistering `rm -f #{target}` `ln -s #{public_data} #{target}`