Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added support for first_page? pagination

  • Loading branch information...
commit 604bc7da3c3fc165d97c728043e72e5c6a1bee6a 1 parent cfe048d
Davide authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/tire/results/pagination.rb
View
4 lib/tire/results/pagination.rb
@@ -41,6 +41,10 @@ def out_of_bounds?
current_page > total_pages
end
+ def first_page?
+ current_page == 1
+ end
+
def last_page?
current_page == total_pages
end
Please sign in to comment.
Something went wrong with that request. Please try again.