From ba465ae4d0ca28d0e82fe8a65b9c28fe9a0e9d57 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 27 Dec 2013 11:12:35 +0800 Subject: [PATCH] Removed Signup and added production database --- app/models/user.rb | 2 +- config/mongoid.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 26a6a21..5c0a987 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -2,7 +2,7 @@ class User include Mongoid::Document # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable - devise :database_authenticatable, :registerable, + devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable ## Database authenticatable diff --git a/config/mongoid.yml b/config/mongoid.yml index 7fc5021..4f580dd 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -70,3 +70,15 @@ test: # low amounts for fast failures. max_retries: 1 retry_interval: 0 +production: + sessions: + default: + database: mtstore + hosts: + - localhost:27017 + options: + read: primary + # In the test environment we lower the retries and retry interval to + # low amounts for fast failures. + max_retries: 1 + retry_interval: 0