limit not working with mongoid 3.1.0

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              axilaris
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: