1. 18 Oct, 2021 1 commit
  2. 06 Oct, 2021 1 commit
  3. 18 Sep, 2021 5 commits
  4. 16 Sep, 2021 1 commit
  5. 14 Sep, 2021 6 commits
  6. 06 Sep, 2021 1 commit
  7. 25 Aug, 2021 3 commits
  8. 24 Aug, 2021 1 commit
  9. 22 Aug, 2021 1 commit
  10. 16 Aug, 2021 1 commit
  11. 13 Aug, 2021 1 commit
  12. 28 Jul, 2021 1 commit
  13. 20 Jul, 2021 1 commit
  14. 06 Jul, 2021 1 commit
  15. 05 Jul, 2021 5 commits
  16. 26 Jun, 2021 2 commits
  17. 14 Jun, 2021 7 commits
  18. 07 Jun, 2021 1 commit
    • Gautier de Saint Martin Lacaze's avatar
      Fix #658 : Pager not working properly · 4e9f7a6c
      Gautier de Saint Martin Lacaze authored
      Since the removal of "X-Total-Pages" and "X-Total" headers, all paginations use the kaminari counter.
      In this mode, kaminari counter is reset to -1 during the call of the last page. This part is correct.
      Then when we call the `current()` method of the pager to get the current page. This method call the same `page` method than the `next` method. In this method the pager check if there is element before checking if we call for the current page. It throws NoSuchElementException erroneously.
      
      To fix, I change the check sequence. First I check ifthe user call the current page. If so, we return the corresponding items. If not we check if there is such elements and call the API.
      4e9f7a6c