Commit 6cf43dc55186690396fe5227b327403b0d3c558c

Authored by Stephen Crosby
2 parents bda61826 7120ccf4
Exists in master and in 1 other branch production

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 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 8 config.load_configuration({
9 9 sessions: {
... ...