about summary refs log tree commit diff
path: root/app/models/admin/action_log.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-12-16 19:45:17 +0100
committerGitHub <noreply@github.com>2021-12-16 19:45:17 +0100
commit7efef7db9ed6f7b25a28166c1b75a28adbaf7cdb (patch)
treead8ebb28e0466649785afa167e8711debb271e68 /app/models/admin/action_log.rb
parentd911c17f521d6b13861caa886715a50b644007a1 (diff)
parent50d62fe2e749a5ab2b2bed81d5a9449b5e733964 (diff)
Merge pull request #1648 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
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') }