Fix bug.
This commit is contained in:
parent
5f24254ae3
commit
5659e0531e
|
@ -698,7 +698,7 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController
|
|||
if txt_scan.count != 1
|
||||
delete_plugin(extention_file,plugin_name)
|
||||
txt = File.read(extention_file) rescue ""
|
||||
txt = txt + "\r\ngem \"#{plugin_name}\", path: \"#{Rails.root}/tmp/#{plugin_name}\"\r\n"
|
||||
txt = txt + "\r\ngem \"#{plugin_name}\", path: \"#{Rails.root}/tmp/#{plugin_name}\"\n"
|
||||
File.open(extention_file,'w+') do |f|
|
||||
f.write(txt)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue