Commit 7120ccf4bda0d4063202b6166ceadfddc500ec84

Authored by Alexander Simonov
1 parent bda61826
Exists in master and in 1 other branch production

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: {
... ...