Module: Pagify::Helper::Web

Included in:
Innate, Rails
Defined in:
lib/pagify/helper/detail/web.rb

Instance Method Summary collapse

Instance Method Details



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