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