This commit is contained in:
BoHung Chiu 2022-07-27 13:57:10 +08:00
parent 5f24254ae3
commit 5659e0531e
1 changed files with 92 additions and 92 deletions

View File

@ -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