2.1.5 + kaminari pagination bug

XMLWordPrintableJSON

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

      Don't know for certain if this is a mongoid issue but here goes. With 2.0.2 I got these results:

      >> Article.page(1).per(5).all.length
      => 5
      >> Article.page(1).per(5).all.size
      => 5
      

      with 2.1.5:

      >> Article.page(1).per(5).all.size
      => 294
      >> Article.page(1).per(5).all.length
      => 294
      >> Article.page(1).per(5).all.to_a.length
      => 5
      

      Is this now expected behaviour?

      Latest version of kaminari - also tried its HEAD of master.

              Assignee:
              Durran Jordan
              Reporter:
              Martin Moen Wulffeld
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: