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

2.1.5 + kaminari pagination bug

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.1.8
    • Affects Version/s: None
    • Component/s: 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 Durran Jordan
            Reporter:
            wulffeld Martin Moen Wulffeld
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: