Sha256: 43f477649a930e20a014600e7cda4103e6fa7b1807b519463159bd74382c66d6
Contents?: true
Size: 530 Bytes
Versions: 4
Compression:
Stored size: 530 Bytes
Contents
# encoding: UTF-8 # It is here only until this pull request is pulled: https://github.com/amatsuda/kaminari/pull/267 module Kaminari module Helpers class Tag def page_url_for(page) current_page_params_as_query_string = @param_name.to_s + '=' + (page <= 1 ? nil : page).to_s current_page_params_as_hash = Rack::Utils.parse_nested_query(current_page_params_as_query_string) @template.url_for Wice::WgHash.rec_merge(@params, current_page_params_as_hash).symbolize_keys end end end end
Version data entries
4 entries across 4 versions & 1 rubygems