-
Notifications
You must be signed in to change notification settings - Fork 137
Remove warnings if user has explicitly defined paginator #36
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
Conversation
This looks good; thanks! Would you mind squashing your two commits before I merge? |
… if user hasn't explicitly set one of the paginators
afd4400
to
9973bac
Compare
Done, thanks ;) Hugo Ribeira Jack of All Trades at *intoCros http://intocross.coms 2015-02-09 19:58 GMT+00:00 David Celis [email protected]:
|
Remove warnings if user has explicitly defined paginator
@davidcelis can you bump the gem version? Would love to avoid the warning :) |
Hmmm. There’s one thing I’m still thinking about, which is that there’s still a possibility of someone including |
One could run an extra verification that checks whether both kaminari and Hugo Ribeira Jack of All Trades at *intoCros http://intocross.coms 2015-02-11 17:24 GMT+00:00 David Celis [email protected]:
|
If the user has configured a paginator, the warning about Kaminari and WillPaginate both appearing in the Gemfile should not be printed. Additionally, this moves loading of Kaminari and WillPaginate back into `hooks.rb` with a warning printed if neither gem is included. This warning still gets printed when the user's application starts. Finally, add a note to the README saying that we basically aren't going to try to deal with people's Kaminari/WillPaginate conflicts anymore. Let them sort that out themselves. Sorry, folks! Related: #18, #36 Signed-off-by: David Celis <[email protected]>
I’m okay with what this latest commit does. Let me know if y’all have thoughts before I release. |
Yup seems fine, the warning should not fire anymore unless both gems are present and none explicitly defined but still fires if none is present at start up time. Right? The version bump is still necessary to update te the gem though, is it not? Thanks for the support :) |
Yep, I’ll bump the version in a bit |
I’ve released versions 3.2.1 and 4.1.1. |
This PR defers warnings to the first time ApiPagination.configuration.paginator is called.
This way no warnings will be generated if someone has explicitly defined a paginator even though more than one might be present.