2
0

Remove default_scope from Admin::ActionLog (#28026)

This commit is contained in:
Matt Jankowski
2023-11-29 05:39:59 -05:00
committed by GitHub
parent 291dc04e67
commit e48ecd2929
6 changed files with 20 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ module Admin
def index
authorize :audit_log, :index?
@auditable_accounts = Account.where(id: Admin::ActionLog.reorder(nil).select('distinct account_id')).select(:id, :username)
@auditable_accounts = Account.where(id: Admin::ActionLog.select('distinct account_id')).select(:id, :username)
end
private