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

API-only applications #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rbague
Copy link

@rbague rbague commented Oct 21, 2022

Right now, this gem can only be used out of the box in full applications. In order to use it in API-only applications (or in API controllers), GearedPagination::Controller needs to be included manually inside the controller, or an initializer.
This PR fixes it by including it manually to both ActionController::Base and ActionController::API in the engine initialization process.

@kjakub
Copy link

kjakub commented Feb 28, 2023

👍

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