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:
class pagy
def pagy_url_for(pagy, page, absolute: false, html_escaped: false)
etc.
end
So I just passed them in manually:
module QuotesHelper
# overrriding this
def pagy_url_for(pagy, page, absolute: false, html_escaped: false)
page
end
end
Is there a way of making those extra arguments optional, and then providing a deprecation warning?