fix naming
Some checks are pending
Chromatic / Check for relevant changes (push) Waiting to run
Chromatic / Run Chromatic (push) Blocked by required conditions

This commit is contained in:
Pia B
2026-06-18 17:21:35 +02:00
parent 75ee73a6ff
commit afa894d79a
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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) }

View File

@@ -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