Trust level change logs the target_user_id

This commit is contained in:
Neil Lalonde 2013-08-07 17:01:59 -04:00
parent b0848db6de
commit 949b2068a5

View File

@ -24,7 +24,8 @@ class StaffActionLogger
StaffActionLog.create!(
action: StaffActionLog.actions[:change_trust_level],
staff_user_id: @admin.id,
details: [:id, :username, :name, :created_at, :trust_level, :last_seen_at, :last_emailed_at].map { |x| "#{x}: #{user.send(x)}" }.join(', ') + "new trust level: #{new_trust_level}"
target_user_id: user.id,
details: [:id, :username, :name, :created_at, :trust_level, :last_seen_at, :last_emailed_at].map { |x| "#{x}: #{user.send(x)}" }.join(', ') + ", new trust level: #{new_trust_level}"
)
end
end