Permalink
Browse files

fix problem in integration with last_page? function of kaminari

  • Loading branch information...
1 parent 7b7d63b commit cfe048d11669c364c8a630885c9ad55b27328197 Davide committed Sep 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/tire/results/pagination.rb
@@ -41,6 +41,10 @@ def out_of_bounds?
current_page > total_pages
end
+ def last_page?
+ current_page == total_pages
+ end
+
# Kaminari support
#
alias :limit_value :per_page

0 comments on commit cfe048d

Please sign in to comment.