diff options
| author | cedricnjanga | 2018-02-28 11:08:16 -0800 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-03-01 08:59:44 +0100 |
| commit | a8bc6aefce236b0ecc231312f9c5f05efce4cf8c (patch) | |
| tree | 6dd0435e2dcde88ce9746d23236492a2a5c690f6 /app/controllers | |
| parent | 4acb5a53da2995aacc7b6ce2c802ad16fa563bf8 (diff) | |
| download | chouette-core-a8bc6aefce236b0ecc231312f9c5f05efce4cf8c.tar.bz2 | |
Refs #6056 Add pagination to ComplianceCheckSet#index
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/compliance_check_sets_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/compliance_check_sets_controller.rb b/app/controllers/compliance_check_sets_controller.rb index 271598428..62b0e6ba3 100644 --- a/app/controllers/compliance_check_sets_controller.rb +++ b/app/controllers/compliance_check_sets_controller.rb @@ -12,7 +12,7 @@ class ComplianceCheckSetsController < ChouetteController @q_for_form = scope.ransack(params[:q]) format.html { @compliance_check_sets = ComplianceCheckSetDecorator.decorate( - @q_for_form.result.order(created_at: :desc) + @q_for_form.result.order(created_at: :desc).paginate(page: params[:page], per_page: 30) ) } end |
