aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/compliance_checks_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/compliance_checks_controller.rb')
-rw-r--r--app/controllers/compliance_checks_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/compliance_checks_controller.rb b/app/controllers/compliance_checks_controller.rb
index 39ae397e6..d8f8d17b2 100644
--- a/app/controllers/compliance_checks_controller.rb
+++ b/app/controllers/compliance_checks_controller.rb
@@ -73,6 +73,11 @@ class ComplianceChecksController < ChouetteController
def resource
@compliance_check ||= compliance_check_service.find(params[:id])
+ @line_items = @compliance_check.report.line_items
+ if @line_items.size > 500
+ @line_items = @line_items.paginate(page: params[:page], per_page: 20)
+ end
+ @compliance_check
end
def collection