small engine fix
This commit is contained in:
parent
25919bef1a
commit
54012254ce
|
@ -46,11 +46,11 @@ module Announcement
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
temp = YAML.load_file(File.join(Rails.root,"config","mongoid.yml"))
|
# temp = YAML.load_file(File.join(Rails.root,"config","mongoid.yml"))
|
||||||
dbsettings = temp["production"]["sessions"]["default"]
|
# dbsettings = temp["production"]["sessions"]["default"]
|
||||||
s = Moped::Session.new(dbsettings["hosts"])
|
# s = Moped::Session.new(dbsettings["hosts"])
|
||||||
s.use dbsettings["database"]
|
# s.use dbsettings["database"]
|
||||||
s[:bulletins].indexes.create({expirable_created_at: 1},{ expireAfterSeconds: 180 })
|
# s[:bulletins].indexes.create({expirable_created_at: 1},{ expireAfterSeconds: 180 })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue