Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1977385383_10
def page_size
if direction == :forward
@first_value || max_page_size
elsif direction == :backward
@last_value || max_page_size
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment