Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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