Commit 6cf43dc55186690396fe5227b327403b0d3c558c
Exists in
master
and in
1 other branch
Merge pull request #854 from simonoff/patch-1
Fix mongodb url for other host then localhost
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
config/mongo.rb
1 | Mongoid.configure do |config| | 1 | Mongoid.configure do |config| |
2 | - if Errbit::Config.mongo_url == 'mongodb://localhost' | ||
3 | - uri = "mongodb://localhost/errbit_#{Rails.env}" | ||
4 | - else | ||
5 | - uri = Errbit::Config.mongo_uri | ||
6 | - end | 2 | + uri = if Errbit::Config.mongo_url == 'mongodb://localhost' |
3 | + "mongodb://localhost/errbit_#{Rails.env}" | ||
4 | + else | ||
5 | + Errbit::Config.mongo_url | ||
6 | + end | ||
7 | 7 | ||
8 | config.load_configuration({ | 8 | config.load_configuration({ |
9 | sessions: { | 9 | sessions: { |