From 54012254ce13ecb3a7861520f521acb7af1041f8 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 28 May 2015 19:01:17 +0800 Subject: [PATCH] small engine fix --- lib/announcement/engine.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/announcement/engine.rb b/lib/announcement/engine.rb index 972898d..49372f5 100644 --- a/lib/announcement/engine.rb +++ b/lib/announcement/engine.rb @@ -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 \ No newline at end of file