Class: Tang::ApplicationHelper::BootstrapLinkRenderer
- Inherits:
-
WillPaginate::ActionView::LinkRenderer
- Object
- WillPaginate::ActionView::LinkRenderer
- Tang::ApplicationHelper::BootstrapLinkRenderer
- Defined in:
- app/helpers/tang/application_helper.rb
Constant Summary collapse
- ELLIPSIS =
"…"
Instance Method Summary collapse
Instance Method Details
#container_attributes ⇒ Object
66 67 68 |
# File 'app/helpers/tang/application_helper.rb', line 66 def container_attributes super.except(*[:link_options]) end |
#to_html ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/helpers/tang/application_helper.rb', line 54 def to_html list_items = pagination.map do |item| case item when Fixnum page_number(item) else send(item) end end.join([:link_separator]) tag("ul", list_items, class: ul_class) end |