Daily Rubocop
This commit is contained in:
@ -63,7 +63,7 @@ class RemoteEvaluationController < ApplicationController
|
|||||||
score_submission(@submission)
|
score_submission(@submission)
|
||||||
else
|
else
|
||||||
# TODO: better output
|
# TODO: better output
|
||||||
# todo: check token expired?
|
# TODO: check token expired?
|
||||||
{message: 'No exercise found for this validation_token! Please keep out!', status: 401}
|
{message: 'No exercise found for this validation_token! Please keep out!', status: 401}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
# todo: reference to lti_param_model
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# TODO: reference to lti_param_model
|
||||||
class RemoteEvaluationMapping < ApplicationRecord
|
class RemoteEvaluationMapping < ApplicationRecord
|
||||||
before_create :generate_token, unless: :validation_token?
|
before_create :generate_token, unless: :validation_token?
|
||||||
belongs_to :exercise
|
belongs_to :exercise
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class User < ApplicationRecord
|
class User < ApplicationRecord
|
||||||
self.abstract_class = true
|
self.abstract_class = true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user