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

Model#distinct unavailable?

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      I tried calling distinct on my model class and it came back as a missing method. Yet, when I do MyModel.where({}).distinct(:name), I get the desired results. Shouldn't distinct be available on the model too?

            Assignee:
            Unassigned Unassigned
            Reporter:
            emirkin Eugene Mirkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: