Sha256: b3760e62ebca9febb86f83d0a97f0353a96376f5f4a844a28b7c6b3ca55b6704
Contents?: true
Size: 271 Bytes
Versions: 2
Compression:
Stored size: 271 Bytes
Contents
module Pagination module PathForHelper def paginate_path_for(page) page ||= 1 url_for paginate_params_for(page) end private def paginate_params_for(page) current_params.merge(paginate: { page: page }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionset-0.4.2 | lib/action_set/helpers/pagination/path_for_helper.rb |
actionset-0.4.1 | lib/action_set/helpers/pagination/path_for_helper.rb |