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

Use a generic client name in tutorial example rather than "secondary"

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.1.4
    • Affects Version/s: None
    • Component/s: Docs

      The example of using a different client name in Ruby MongoId tutorial 5.0.0 should be modified.

      As the term secondary in the context of client connection might be interpreted as MongoDB replica set secondary. Especially by users who are not familiar with MongoDB, and not knowing that store_in and secondary don't go together.

      class Band
        include Mongoid::Document
        store_in collection: "artists", database: "music", client: "secondary"
      end
      

      Alternative client names "writable", "staging", "dev-02", etc.

      Thanks.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            wan.bachtiar@mongodb.com Wan Bachtiar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: