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

Bug - API v0 plans endpoint returns a 500 error #2776

Closed
3 tasks done
briri opened this issue Jan 5, 2021 · 0 comments · Fixed by #2777
Closed
3 tasks done

Bug - API v0 plans endpoint returns a 500 error #2776

briri opened this issue Jan 5, 2021 · 0 comments · Fixed by #2777
Assignees

Comments

@briri
Copy link
Contributor

briri commented Jan 5, 2021

The api/v0/plans API endpoint returns a 500 error. The error message reports an undefined method paginate in apps/controllers/api/v0/plans_controller.rb at line 125.

  • Include the Paginable controller
  • Set the @args hash with the per_page and page attributes
  • Call the Paginable scope's refine_query method instead of paginate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant