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

Model#distinct unavailable?

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: