Class: PolicyManager::PaginatorRenderer
- Inherits:
-
WillPaginate::ActionView::LinkRenderer
- Object
- WillPaginate::ActionView::LinkRenderer
- PolicyManager::PaginatorRenderer
- Defined in:
- lib/policy_manager/exporter/paginator_renderer.rb
Constant Summary collapse
- ELLIPSIS =
'…'
Instance Method Summary collapse
Instance Method Details
#container_attributes ⇒ Object
23 24 25 |
# File 'lib/policy_manager/exporter/paginator_renderer.rb', line 23 def container_attributes super.except(*[:link_options]) end |
#to_html ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/policy_manager/exporter/paginator_renderer.rb', line 9 def to_html list_items = pagination.map do |item| case item when (1.class == Integer ? Integer : Fixnum) page_number(item) else send(item) end end.join(@options[:link_separator]) list_wrapper = tag :nav, list_items, class: "pagination button-group" tag :nav, list_wrapper end |