Fix rubocop offenses after bundle update
This commit is contained in:
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user