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
create a constant with pagination value #1130
Conversation
👍 Is this value used anywhere else? |
Couldn't find it, but didn't look too deep. |
it is here also -
|
Should we create a constant for this value in application.rb or any other place? |
👎 on this. Although it's a kind of reducing duplication, it's not worth to change since we have different number of pagination and current version is sufficient enough to keep the codebase more readable. Though, thanks for contributing rubygems.org 💙 ❤️ |
I think this makes sense, we should have as few magic numbers as possible, even if it is only 2/3 fewer.
application.rb should be fine. |
Good. |
@lucianosousa Are you still working on this? If not, can you please close the PR? That way the list of open PRs is kept organised with active ones only :-) |
@jvanbaarsen sorry being late here Sir. It's done! |
@dwradcliffe I think this is ready to merge :-) |
@lucianosousa can you please squash your commits? |
Merged as f5686b3. |
cheers mates |
avoid duplicated values in the controller