Skip to content

Instantly share code, notes, and snippets.

@handshake-engineering-blog
Created April 19, 2021 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save handshake-engineering-blog/5da5d82f552d0f8743e5aacd88d23408 to your computer and use it in GitHub Desktop.
Save handshake-engineering-blog/5da5d82f552d0f8743e5aacd88d23408 to your computer and use it in GitHub Desktop.
1977385383_12
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