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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 7.1.4
    • None
    • Docs

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: