Sha256: 8a803a48a7fc58cc632c19ac5a6edc28b81880fcd38941b2d8f8c43fd64b8688
Contents?: true
Size: 383 Bytes
Versions: 54
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin class ResultsPerPageCell < Decidim::ViewModel property :per_page, :per_page_range delegate :params, to: :controller, prefix: false def path_for_num_per_page(num_per_page = per_page_range.first) controller.url_for(params.to_unsafe_h.merge(per_page: num_per_page)) end end end end
Version data entries
54 entries across 54 versions & 1 rubygems