From a07d3442bbba3aeee336d29a49d024c396ff02b1 Mon Sep 17 00:00:00 2001 From: aaronskiba Date: Tue, 23 Jul 2024 11:26:35 -0600 Subject: [PATCH] Make Rubocop happy --- app/controllers/org_admin/plans_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/org_admin/plans_controller.rb b/app/controllers/org_admin/plans_controller.rb index 98a0fa7c8..64e16b59d 100644 --- a/app/controllers/org_admin/plans_controller.rb +++ b/app/controllers/org_admin/plans_controller.rb @@ -17,7 +17,11 @@ def index @super_admin = current_user.can_super_admin? @clicked_through = params[:click_through].present? - @plans = @super_admin ? Plan.all.page(1).includes(:template, roles: { user: :org }) : current_user.org.org_admin_plans.page(1) + @plans = if @super_admin + Plan.all.page(1).includes(:template, roles: { user: :org }) + else + current_user.org.org_admin_plans.page(1) + end end # rubocop:enable Metrics/AbcSize