create remote evaluation
This commit is contained in:
10
app/models/remote_evaluation_mapping.rb
Normal file
10
app/models/remote_evaluation_mapping.rb
Normal 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
|
@@ -2,7 +2,7 @@ class Submission < ActiveRecord::Base
|
||||
include Context
|
||||
include Creation
|
||||
|
||||
CAUSES = %w(assess download file render run save submit test autosave requestComments)
|
||||
CAUSES = %w(assess download file render run save submit test autosave requestComments remoteAssess)
|
||||
FILENAME_URL_PLACEHOLDER = '{filename}'
|
||||
|
||||
belongs_to :exercise
|
||||
|
Reference in New Issue
Block a user