Closed abhiQmar closed 7 years ago
Shouldn't it return an empty list when current_page > total_pages. https://github.com/agoragames/leaderboard/blob/master/lib/leaderboard.rb#L713-L715
current_page > total_pages
If you request a page before the first page, it gives you the first page. This is similar behavior. If you request a page after the last page, it gives you the last page.
Shouldn't it return an empty list when
current_page > total_pages
. https://github.com/agoragames/leaderboard/blob/master/lib/leaderboard.rb#L713-L715