From 3c7e9176a2eb7988fdfeb06cc56fd0cdd489db6b Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 26 Apr 2021 16:41:03 +0200 Subject: [PATCH] Daily Rubocop --- app/controllers/remote_evaluation_controller.rb | 2 +- app/models/remote_evaluation_mapping.rb | 4 +++- app/models/user.rb | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controllers/remote_evaluation_controller.rb b/app/controllers/remote_evaluation_controller.rb index 7bb46653..4c35c2aa 100644 --- a/app/controllers/remote_evaluation_controller.rb +++ b/app/controllers/remote_evaluation_controller.rb @@ -63,7 +63,7 @@ class RemoteEvaluationController < ApplicationController score_submission(@submission) else # TODO: better output - # todo: check token expired? + # TODO: check token expired? {message: 'No exercise found for this validation_token! Please keep out!', status: 401} end end diff --git a/app/models/remote_evaluation_mapping.rb b/app/models/remote_evaluation_mapping.rb index 091e881f..9575b8fb 100644 --- a/app/models/remote_evaluation_mapping.rb +++ b/app/models/remote_evaluation_mapping.rb @@ -1,4 +1,6 @@ -# todo: reference to lti_param_model +# frozen_string_literal: true + +# TODO: reference to lti_param_model class RemoteEvaluationMapping < ApplicationRecord before_create :generate_token, unless: :validation_token? belongs_to :exercise diff --git a/app/models/user.rb b/app/models/user.rb index d8796ff5..668aa845 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class User < ApplicationRecord self.abstract_class = true