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:
parent
ca38024f39
commit
f36cbd2715
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue