Module: Pagify::Helper::Web
Instance Method Summary collapse
Instance Method Details
#pagify_links(objs, opts) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/pagify/helper/detail/web.rb', line 7 def pagify_links objs, opts html = objs.pager.html name = html.setting[:query_name] type = html.setting[:links_type] base = opts[:path].call "<div class=\"#{html.setting[:wrapper_class]}\">" + html.send(type, opts[:page][name]){ |p| base + "?#{name}=#{p}" } + '</div>' end |