Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2058

Update configuration to add hosts and database in the uri case.

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Fixes https://github.com/mongoid/moped/issues/10.
      Thanks to @mikezter.

      The Problem was that the configuration contained only the uri and not the database and hosts. That worked initially, but when calling #mongo_session(https://github.com/i0rek/mongoid/blob/uri_fix/lib/mongoid/sessions.rb) looking up the database name doesn't work because its not there.

      Edit: I'm aware that I'm modifying the configuration. Not sure what to do about it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            i0rek Hans Hasselberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: