Group administrators separately from members with visual divider

This commit is contained in:
Ashwin M
2025-12-08 03:34:26 +05:30
parent de5493d8a9
commit b52c318518
3 changed files with 42 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ class AccountsController < ApplicationController
before_action :set_account
def edit
set_page_and_extract_portion_from account_users.ordered, per_page: 500
users = account_users.ordered.without_bots
@administrators, @members = users.partition(&:administrator?)
set_page_and_extract_portion_from users, per_page: 500
end
def update