Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey kaminari team,
I'm building a project which requires dynamic routes that go through a wildcard domain and are handled by a custom Rack application that acts as the router. E.g.:
Because of this it's not possible to use
url_for
and I've built my own_path
methods. Or at least I haven't found a way to get it to work withurl_for
.Now because I can't use
url_for
, kaminari pagination doesn't work for those custom routes. Inspired by #115 I've added an option that would add support for other methods thanurl_for
:How those methods build the path is up to the application itself.
The vulnerability issue discussed in #115 isn't affected anymore because the
route
option is no longer passed along with theparams
option.Maybe this use case is to special for my own use case to implement as a feature. In this case I'll just go with monkey patching. Let me know what you think.