Module: Wallaby::PaginatableHelper
- Included in:
- ResourcesHelper
- Defined in:
- lib/helpers/wallaby/paginatable_helper.rb
Instance Method Summary collapse
Instance Method Details
#custom_pagination_stats(collection) ⇒ Object
6 7 8 |
# File 'lib/helpers/wallaby/paginatable_helper.rb', line 6 def custom_pagination_stats(collection) "Showing #{ content_tag :b, collection.size }".html_safe end |
#paginatable?(collection) ⇒ Boolean
2 3 4 |
# File 'lib/helpers/wallaby/paginatable_helper.rb', line 2 def paginatable?(collection) defined?(Kaminari) && collection.present? && collection.respond_to?(:total_pages) end |