Fixed deprecation warning in will_paginate-helper.
This commit is contained in:
parent
fb5884fbf6
commit
1894f27fe0
1 changed files with 2 additions and 2 deletions
|
@ -17,11 +17,11 @@ module ApplicationHelper
|
||||||
# see also the plugin "will_paginate"
|
# see also the plugin "will_paginate"
|
||||||
def pagination_links_remote(collection, per_page = @per_page, params = {})
|
def pagination_links_remote(collection, per_page = @per_page, params = {})
|
||||||
# Translations
|
# Translations
|
||||||
prev_label = '« ' + _('Previous')
|
previous_label = '« ' + _('Previous')
|
||||||
next_label = _('Next') + ' »'
|
next_label = _('Next') + ' »'
|
||||||
# Merge other url-options for will_paginate
|
# Merge other url-options for will_paginate
|
||||||
params = params.merge({:per_page => per_page})
|
params = params.merge({:per_page => per_page})
|
||||||
will_paginate collection, {:params => params, :remote => true, :prev_label => prev_label, :next_label => next_label}
|
will_paginate collection, {:params => params, :remote => true, :previous_label => previous_label, :next_label => next_label}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Link-collection for per_page-options when using the pagination-plugin
|
# Link-collection for per_page-options when using the pagination-plugin
|
||||||
|
|
Loading…
Reference in a new issue