This commit is contained in:
邱博亞 2024-05-12 14:37:36 +08:00
parent 6495986188
commit c3588b347e
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@ class FileManagerSetting
self.modules_saved_info = models_dict self.modules_saved_info = models_dict
self.modules_keys = modules_info.keys self.modules_keys = modules_info.keys
self.save self.save
if self.class.all.count > 1
self.class.where(:id.ne=> self.id).destroy
end
modules_info.each do |module_key, uploaders| modules_info.each do |module_key, uploaders|
# module_app = ModuleApp.where(:key=> module_key).first # module_app = ModuleApp.where(:key=> module_key).first
# I18n.t("module_name.#{module_key}") # I18n.t("module_name.#{module_key}")