From 04aa4362cd64ab252f1133831cc8fbb87dfafd50 Mon Sep 17 00:00:00 2001 From: jimabramson Date: Thu, 12 Dec 2013 09:06:32 -0500 Subject: [PATCH] override mongoid.yml defaults from env --- config/mongoid.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/mongoid.yml b/config/mongoid.yml index f1cca9c..5910a34 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -17,9 +17,9 @@ common: &default_session skip_version_check: true safe: true consistency: strong - max_retries: 1 - retry_interval: 0 - timeout: 0.5 + max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %> + retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %> + timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %> production: sessions: