Skip to content

StrongParams Rubocop: Update pagination params usage

Add a RuboCop to enforce the use of StrongParam... (!155661 - merged) introduced a new rubocop.

Many of the violations are of the form paginated_resource.page(params[:page).per(params[:per_page)). We can resolve those by introducing a new pagination_params helper (in ApplicationController or similar).

  • Add a helper
  • Update controllers
  • Validate specs still pass
Edited by Nick Malcolm