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

Create an exception subclass for calling estimated_count on models with default scopes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 9.0.0
    • Dev Exp
    • None
    • Minor Change

    Description

      We can provide better diagnostics if we have separate messages for users trying to call estimated_count after giving conditions vs when they call estimated_count on models that have default scopes defined.

      Attachments

        Issue Links

          Activity

            People

              neil.shweky@mongodb.com Neil Shweky (Inactive)
              oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: