Specify ExternalUser
as class for user
in RemoteEvaluationMapping
Otherwise, the download of submissions will no longer work in Rails 5
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
class RemoteEvaluationMapping < ApplicationRecord
|
||||
before_create :generate_token, unless: :validation_token?
|
||||
belongs_to :exercise
|
||||
belongs_to :user
|
||||
belongs_to :user, class_name: 'ExternalUser'
|
||||
|
||||
def generate_token
|
||||
self.validation_token = SecureRandom.urlsafe_base64
|
||||
|
Reference in New Issue
Block a user