-
-
Save handshake-engineering-blog/5da5d82f552d0f8743e5aacd88d23408 to your computer and use it in GitHub Desktop.
1977385383_12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def has_next_page | |
return false unless direction == :forward | |
results.size > page_size | |
end | |
def has_previous_page | |
return false unless direction == :backward | |
results.size > page_size | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment