From 80a81fe223415525811c0c3ef62b8853624e9a6a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 31 Jul 2019 01:25:10 -0500 Subject: ability to add domain moderation notes, edit existing domain policies in-place, and process asynchronously --- app/models/admin/action_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/admin/action_log.rb') diff --git a/app/models/admin/action_log.rb b/app/models/admin/action_log.rb index 1d1db1b7a..6794299de 100644 --- a/app/models/admin/action_log.rb +++ b/app/models/admin/action_log.rb @@ -34,7 +34,7 @@ class Admin::ActionLog < ApplicationRecord when :destroy, :create self.recorded_changes = target.attributes when :update, :promote, :demote - self.recorded_changes = target.previous_changes + self.recorded_changes = target_type != 'DomainBlock' ? target.previous_changes : target.attributes when :change_email self.recorded_changes = ActiveSupport::HashWithIndifferentAccess.new( email: [target.email, nil], -- cgit