small engine fix
This commit is contained in:
parent
25919bef1a
commit
54012254ce
|
@ -46,11 +46,11 @@ module Announcement
|
|||
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 })
|
||||
# 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
|
Loading…
Reference in New Issue