Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify pagination using Enumerator::Lazy #568

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

javanthropus
Copy link
Contributor

This preserves compatibility with the existing pagination methods while leveraging a lazy enumerator to simplify the implementation. The other advantage is that using the new lazy_paginate method directly allows users to take advantage of all the additional methods available to lazy enumerators, such as take or first, without needing to code those methods into this library.

@javanthropus
Copy link
Contributor Author

The remaining Rubocop failure is not in any code that I modified.

@NARKOZ NARKOZ merged commit b4a8c00 into NARKOZ:master Jun 25, 2020
@NARKOZ
Copy link
Owner

NARKOZ commented Jun 25, 2020

Great! Thank you.

@javanthropus javanthropus deleted the simplify-pagination branch June 25, 2020 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants