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

Revise configuration documentation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0.rc0, 7.0.6
    • Affects Version/s: None
    • Component/s: Docs

      Currently Mongoid configuration documentation, when it comes to the code needed to configure Mongoid (i.e. everything other than the listing of Mongoid configuration options), is a bit of a patchwork. This ticket proposes to rework the related documentation to clearly cover:

      How to load Mongoid configuration in non-Rails context
      That in Rails context Mongoid configuration does not need to be explicitly loaded
      That Mongoid environment determination is only relevant when not running in a Rails context
      How to load a hash of configuration options programmatically - this is not supported as far as I can see
      That environment applies to hash of options loaded programmatically but not to options set in Ruby code

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: