Sha256: 2ecb141f51c269523b9183ddb339c88006896c6e07cccc8de806a994629edf10
Contents?: true
Size: 426 Bytes
Versions: 13
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true require_relative '../params/current_helper' module Pagination module PathForHelper include Params::CurrentHelper def pagination_path_for(page) page ||= 1 url_for paginate_params_for(page) end private def paginate_params_for(page) current_params .deep_merge(paginate: { page: page }) end end end
Version data entries
13 entries across 13 versions & 1 rubygems