Sort auditable accounts

Change audible accounts to return in a predictable order.
This commit is contained in:
Osman 2025-07-05 15:00:41 -07:00 committed by GitHub
parent 1ebb87a6a8
commit 0bcb91f8ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ module Admin
def index
authorize :audit_log, :index?
@auditable_accounts = Account.auditable.select(:id, :username)
@auditable_accounts = Account.auditable.select(:id, :username).order(username: :asc)
end
private