Add Account.auditable
scope, fix N+1 in admin/action_logs#index (#28812)
This commit is contained in:
parent
5ae3bae586
commit
1480573c83
4 changed files with 22 additions and 2 deletions
|
@ -72,7 +72,7 @@ class Admin::ActionLogFilter
|
|||
end
|
||||
|
||||
def results
|
||||
scope = latest_action_logs.includes(:target)
|
||||
scope = latest_action_logs.includes(:target, :account)
|
||||
|
||||
params.each do |key, value|
|
||||
next if key.to_s == 'page'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue