Class: Decidim::Admin::ResultsPerPageCell

Inherits:
ViewModel
  • Object
show all
Defined in:
app/cells/decidim/admin/results_per_page_cell.rb

Instance Method Summary collapse

Instance Method Details

#path_for_num_per_page(num_per_page = per_page_range.first) ⇒ Object



7
8
9
# File 'app/cells/decidim/admin/results_per_page_cell.rb', line 7

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