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

No way to change mongo connection host

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

      Mongo::Connection.new assumes localhost, I don't see any way to change this in Mongoid.

      This is my suggestion of how to fix: http://github.com/samsm/mongoid/blob/master/lib/mongoid.rb#L99
      Allows users to set up connection and database with the mongo gem then use that setup in Mongoid.

            Assignee:
            Unassigned Unassigned
            Reporter:
            samsm Sam Schenkman-Moore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: