Update find method

This commit is contained in:
Sebastian Serth
2022-08-20 00:17:10 +02:00
parent 6927b57170
commit c228850ae8
24 changed files with 41 additions and 41 deletions

View File

@ -41,7 +41,7 @@ module CodeOcean
end
def destroy
@file = CodeOcean::File.find_by(id: params[:id])
@file = CodeOcean::File.find(params[:id])
authorize!
destroy_and_respond(object: @file, path: @file.context)
end