Fix bug.
This commit is contained in:
parent
8bf121655b
commit
c8c8738800
|
@ -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"
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue