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

Deprecate Document#as_json :compact option

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 7.1.11, 7.2.6, 7.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      The syntax document.as_json(compact: true) is redundant as it is functionally identical to document.as_json.compact (compact comes from ActiveSupport)

      We should deprecate the :compact option and remove it in the next major version.

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

              Created:
              Updated:
              Resolved: