Remove default_scope from Admin::ActionLog (#28026)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user