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



9
10
11
# File 'app/cells/decidim/admin/results_per_page_cell.rb', line 9

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