Skip to content

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