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

limit not working with mongoid 3.1.0

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      i tried something like this in rails

      @go = Gallery.limit(1)
      logger.info "count: #

      {@go.count}

      "

      it will return all rows. in my case it would be
      count: 4

      which version of mongoid is good with limit() ?

            Assignee:
            Unassigned Unassigned
            Reporter:
            axilaris axilaris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: