This commit is contained in:
BoHung Chiu 2023-01-05 19:51:06 +08:00
parent 8bf121655b
commit c8c8738800
2 changed files with 14 additions and 18 deletions

View File

@ -2,6 +2,7 @@
require 'rubyXL' require 'rubyXL'
class Admin::PatchfilesController < OrbitAdminController class Admin::PatchfilesController < OrbitAdminController
include Admin::PatchfilesHelper include Admin::PatchfilesHelper
include AdminAuthorize rescue nil
before_action :getfont , :create_first_field before_action :getfont , :create_first_field
#before_action :load_access_levels #before_action :load_access_levels
layout "structure" layout "structure"

View File

@ -27,11 +27,6 @@ module Patchfile
end end
end end
# # temp = YAML.load_file(File.join(Rails.root,"config","mongoid.yml"))
# # dbsettings = temp["production"]["sessions"]["default"]
# # s = Moped::Session.new(dbsettings["hosts"])
# # s.use dbsettings["database"]
# # s[:bulletins].indexes.create({expirable_created_at: 1},{ expireAfterSeconds: 180 })
end end
end end
end end