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

Version Path
decidim-admin-0.28.4 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.9 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.28.3 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.8 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.28.2 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.7 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.28.1 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.6 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.26.10 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.26.9 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.28.0 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.5 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.28.0.rc5 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.28.0.rc4 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.26.8 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.4 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.3 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.26.7 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.26.5 app/cells/decidim/admin/results_per_page_cell.rb
decidim-admin-0.27.2 app/cells/decidim/admin/results_per_page_cell.rb