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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • Dev Exp
    • None

    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

              Unassigned Unassigned
              oleg.pudeyev@mongodb.com Oleg Pudeyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: