Commit 04aa4362 by jimabramson

override mongoid.yml defaults from env

parent 5b9f339b
...@@ -17,9 +17,9 @@ common: &default_session ...@@ -17,9 +17,9 @@ common: &default_session
skip_version_check: true skip_version_check: true
safe: true safe: true
consistency: strong consistency: strong
max_retries: 1 max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %>
retry_interval: 0 retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %>
timeout: 0.5 timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %>
production: production:
sessions: sessions:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment