create remote evaluation

This commit is contained in:
Niklas Kiefer
2017-02-02 18:14:33 +01:00
parent 252a6ba5d8
commit 3562aa9103
12 changed files with 327 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
# todo: reference to lti_param_model
class RemoteEvaluationMapping < ActiveRecord::Base
before_create :generate_token, unless: :validation_token?
belongs_to :exercise
belongs_to :user
def generate_token
self.validation_token = SecureRandom.urlsafe_base64
end
end