Sha256: ca926fd239bca22db79ad1df47fc3ff2d031d0039efa4b8db10e3aacdb093d99
Contents?: true
Size: 294 Bytes
Versions: 1
Compression:
Stored size: 294 Bytes
Contents
module Hanami module Pagination module View def next_page_url page_url(pager.next_page) end def prev_page_url page_url(pager.prev_page) end def page_url(page) "#{params.env['REQUEST_PATH']}?page=#{page}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-pagination-0.1.0 | lib/hanami/pagination/view.rb |