production:
  sessions:
    default:
      uri: <%= ENV['MONGOLAB_URI'] %>
      options:
        skip_version_check: true
        identity_map_enabled: true
development:
  sessions:
    default:
      database: ladder_development
      hosts:
        - localhost:27017
      options:
        consistency: :strong
        identity_map_enabled: true
  options:
test:
  sessions:
    default:
      database: ladder_test
      hosts:
        - localhost:27017
      options:
        consistency: :strong
        identity_map_enabled: true

production:
  sessions:
    default:
      uri: <%= ENV['MONGOLAB_URI'] || 'mongodb://localhost' %>
      options:
        skip_version_check: true
        identity_map_enabled: true
development:
  sessions:
    default:
      database: ladder_development
      hosts:
        - localhost:27017
      options:
        consistency: :strong
        identity_map_enabled: true
  options:
test:
  sessions:
    default:
      database: ladder_test
      hosts:
        - localhost:27017
      options:
        consistency: :strong
        identity_map_enabled: true

Use localhost mongo in production if mongolab isn't set
Use localhost mongo in production if mongolab isn't set
