Fix rubocop offenses after bundle update

This commit is contained in:
Sebastian Serth
2021-06-30 08:58:14 +02:00
parent ffc7d9d57f
commit 110f1a5750
9 changed files with 13 additions and 16 deletions

View File

@ -81,7 +81,6 @@ class CommentsController < ApplicationController
comment_params.except :request_id
end
# Never trust parameters from the scary internet, only allow the white list through.
def comment_params
# params.require(:comment).permit(:user_id, :file_id, :row, :column, :text)
# fuer production mode, damit böse menschen keine falsche user_id uebergeben:

View File

@ -89,7 +89,6 @@ class ErrorTemplateAttributesController < ApplicationController
@error_template_attribute = ErrorTemplateAttribute.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def error_template_attribute_params
if params[:error_template_attribute].present?
params[:error_template_attribute].permit(:key, :description, :regex,

View File

@ -100,7 +100,6 @@ class ErrorTemplatesController < ApplicationController
@error_template = ErrorTemplate.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def error_template_params
if params[:error_template].present?
params[:error_template].permit(:name, :execution_environment_id, :signature, :description,

View File

@ -90,7 +90,6 @@ class FileTemplatesController < ApplicationController
@file_template = FileTemplate.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def file_template_params
params[:file_template].permit(:name, :file_type_id, :content) if params[:file_template].present?
end

View File

@ -141,7 +141,6 @@ class RequestForCommentsController < ApplicationController
@request_for_comment = RequestForComment.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def request_for_comment_params
# The study_group_id might not be present in the session (e.g. for internal users), resulting in session[:study_group_id] = nil which is intended.
params.require(:request_for_comment).permit(:exercise_id, :file_id, :question, :requested_at, :solved, :submission_id).merge(