From bb10e191ed711e1f7fb969652f8813457dee9cc0 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 22 Nov 2018 18:57:58 +0100 Subject: [PATCH] Specify `ExternalUser` as class for `user` in `RemoteEvaluationMapping` Otherwise, the download of submissions will no longer work in Rails 5 --- app/models/remote_evaluation_mapping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/remote_evaluation_mapping.rb b/app/models/remote_evaluation_mapping.rb index 8f6f6192..551ab8a6 100644 --- a/app/models/remote_evaluation_mapping.rb +++ b/app/models/remote_evaluation_mapping.rb @@ -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