Fix rubocop, I18n, cleanup rebase

This commit is contained in:
Felix Auringer
2021-07-26 14:16:41 +02:00
committed by Sebastian Serth
parent 2dff81a510
commit 5cc180d0e9
8 changed files with 20 additions and 91 deletions

View File

@ -119,7 +119,7 @@ class RequestForCommentsController < ApplicationController
if @request_for_comment.save
# create thread here and execute tests. A run is triggered from the frontend and does not need to be handled here.
Thread.new do
@request_for_comment.submission.calculate_score
switch_locale { @request_for_comment.submission.calculate_score }
ensure
ActiveRecord::Base.connection_pool.release_connection
end