diff --git a/app/controllers/admin/tags_controller.rb b/app/controllers/admin/tags_controller.rb index 17ad9bc62c0..f72a0325ab7 100644 --- a/app/controllers/admin/tags_controller.rb +++ b/app/controllers/admin/tags_controller.rb @@ -39,7 +39,7 @@ module Admin def log_action_from_change action_log = current_account.action_logs.new(action: 'update', target: @tag) - action_log.log_changes = @tag.saved_changes.slice('usable', 'trendable', 'listable').transform_values(&:last) + action_log.recorded_changes = @tag.saved_changes.slice('usable', 'trendable', 'listable').transform_values(&:last) action_log.save end diff --git a/app/models/admin/action_log.rb b/app/models/admin/action_log.rb index 54415fdb915..f5dcff1834c 100644 --- a/app/models/admin/action_log.rb +++ b/app/models/admin/action_log.rb @@ -28,7 +28,7 @@ class Admin::ActionLog < ApplicationRecord before_validation :set_route_param before_validation :set_permalink - store_accessor :log_changes, *LOG_ATTRIBUTES + store_accessor :recorded_changes, *LOG_ATTRIBUTES scope :latest, -> { order(id: :desc) } diff --git a/spec/requests/admin/tags_spec.rb b/spec/requests/admin/tags_spec.rb index 0dccd588d0c..cca633d83f1 100644 --- a/spec/requests/admin/tags_spec.rb +++ b/spec/requests/admin/tags_spec.rb @@ -25,7 +25,7 @@ RSpec.describe 'Admin Tags' do expect(response).to have_http_status(302) expect(Admin::ActionLog.last.human_identifier).to eq('#supertag') expect(Admin::ActionLog.pluck(:action)).to eq(%w(update)) - expect(Admin::ActionLog.pluck(:log_changes)).to eq([{ 'listable' => false, 'trendable' => true }]) + expect(Admin::ActionLog.pluck(:recorded_changes)).to eq([{ 'listable' => false, 'trendable' => true }]) end end end