Module: Decidim::PaginateHelper

Included in:
CellsPaginateHelper
Defined in:
app/helpers/decidim/paginate_helper.rb

Overview

Helper to paginate collections.

Instance Method Summary collapse

Instance Method Details

#decidim_paginate(collection, paginate_params = {}) ⇒ Object

Displays pagination links for the given collection, setting the correct theme. This mostly acts as a proxy for the underlying pagination engine.

collection - a collection of elements that need to be paginated paginate_params - a Hash with options to delegate to the pagination helper.



11
12
13
# File 'app/helpers/decidim/paginate_helper.rb', line 11

def decidim_paginate(collection, paginate_params = {})
  paginate collection, theme: "decidim", params: paginate_params
end