Always use user object instead of ID and Type

This commit is contained in:
Sebastian Serth
2023-08-25 23:59:24 +02:00
parent 8ba5d5a984
commit 235bf771fe
11 changed files with 16 additions and 28 deletions

View File

@ -210,8 +210,7 @@ class ExercisesController < ApplicationController
files_attributes: file_attributes,
tag_ids: []
).merge(
user_id: current_user.id,
user_type: current_user.class.name
user: current_user
)
end
end