about summary refs log tree commit diff
path: root/app/models/admin/action_log.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-12-05 21:48:39 +0100
committerGitHub <noreply@github.com>2021-12-05 21:48:39 +0100
commit0fb9536d3888cd7b6013c239d5be85f095a6e8ad (patch)
tree6069121c5535398eeeb65c8ad082d8176f100ab3 /app/models/admin/action_log.rb
parent2e2ea6bb6b409a706c6e76ed63307a2a1f4f1ae7 (diff)
Add batch suspend for accounts in admin UI (#17009)
Diffstat (limited to 'app/models/admin/action_log.rb')
-rw-r--r--app/models/admin/action_log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/admin/action_log.rb b/app/models/admin/action_log.rb
index 1d1db1b7a..852bff713 100644
--- a/app/models/admin/action_log.rb
+++ b/app/models/admin/action_log.rb
@@ -17,7 +17,7 @@ class Admin::ActionLog < ApplicationRecord
   serialize :recorded_changes
 
   belongs_to :account
-  belongs_to :target, polymorphic: true
+  belongs_to :target, polymorphic: true, optional: true
 
   default_scope -> { order('id desc') }