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

pluck doesn't work with `id`

    XMLWordPrintable

    Details

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

      Description

      I noticed that pluck doesn't work with id. I had to use _id.

      User.pluck(:id) # doesn't work
      User.pluck(:_id) # works

      Is this the intended behavior?

        Attachments

          Activity

            People

            Assignee:
            durran Durran Jordan
            Reporter:
            kandadaboggu kandadaboggu
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: