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

Move pagination formatting into a util #5428

Merged
merged 1 commit into from
Jun 15, 2015

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Jun 15, 2015

refs #2896

  • moves repeated code out of models
  • creates a new file for unit-testable code (this should be moved in future)
  • adds a default for page as that seems sensible
  • adds 100% test coverage for the new file

refs TryGhost#2896

- moves repeated code out of models
- creates a new file for unit-testable code (this should be moved in future)
- adds a default for `page` as that seems sensible
- adds 100% test coverage for the new file
sebgie added a commit that referenced this pull request Jun 15, 2015
Move pagination formatting into a util
@sebgie sebgie merged commit 367396a into TryGhost:master Jun 15, 2015
@ErisDS ErisDS deleted the api-pagination1 branch June 15, 2015 19:49
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