mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
fix last_page?
This commit is contained in:
parent
32aceb7b7a
commit
81b508d80a
1 changed files with 2 additions and 1 deletions
|
@ -29,8 +29,9 @@ module Kaminari
|
||||||
|
|
||||||
# Last page of the collection?
|
# Last page of the collection?
|
||||||
def last_page?
|
def last_page?
|
||||||
current_page == num_pages
|
current_page >= num_pages
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue