Remove default_scope from Admin::ActionLog (#28026)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-11-29 10:39:59 +00:00
1 parent 291dc04e67
commit e48ecd2929
6 files changed
+20 -16

No files matched your search

@@ -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