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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 9.0.0
    • Affects Version/s: None
    • Component/s: Dev Exp
    • None
    • Minor Change

      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.

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

              Created:
              Updated:
              Resolved: