1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Bugfix: Pass the real @params to url_for.

This commit is contained in:
Utkarsh Kukreti 2011-04-22 02:56:18 +05:30
parent ca38024f39
commit f36cbd2715

View file

@ -25,7 +25,7 @@ module Kaminari
end
def page_url_for(page)
@template.url_for @template.params.merge(@param_name => (page <= 1 ? nil : page))
@template.url_for @params.merge(@param_name => (page <= 1 ? nil : page))
end
end