-
If you are upgrading to pagy 6 directly from 5.0 - and you are overriding module QuotesHelper
# overrriding this
# => wrong number of arguments (given 3, expected 2)
def pagy_url_for(pagy, page)
page
end
end We need to account for the additional arguments in class pagy
def pagy_url_for(pagy, page, absolute: false, html_escaped: false)
# etc.
end So just pass them in as well: The Solutionmodule QuotesHelper
# overrriding this
def pagy_url_for(pagy, page, **)
page
end
end |
Beta Was this translation helpful? Give feedback.
Answered by
benkoshy
Dec 22, 2022
Replies: 1 comment
-
Solution is above in the question: #424 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benkoshy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution is above in the question: #424 (comment)