Skip to content

Commit a07d344

Browse files
committed
Make Rubocop happy
1 parent a079c57 commit a07d344

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/controllers/org_admin/plans_controller.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ def index
1717

1818
@super_admin = current_user.can_super_admin?
1919
@clicked_through = params[:click_through].present?
20-
@plans = @super_admin ? Plan.all.page(1).includes(:template, roles: { user: :org }) : current_user.org.org_admin_plans.page(1)
20+
@plans = if @super_admin
21+
Plan.all.page(1).includes(:template, roles: { user: :org })
22+
else
23+
current_user.org.org_admin_plans.page(1)
24+
end
2125
end
2226
# rubocop:enable Metrics/AbcSize
2327

0 commit comments

Comments
 (0)