Sha256: f323412183c987400ce6054b23a0745c6d3fb82baece717488fa5b3894ce4ebd
Contents?: true
Size: 567 Bytes
Versions: 42
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module Decidim # Helper to paginate collections. module PaginateHelper # 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. def decidim_paginate(collection, paginate_params = {}) paginate collection, theme: "decidim", params: paginate_params end end end
Version data entries
42 entries across 42 versions & 1 rubygems