Merge pull request #117 from openHPI/ImproveUserfeedback

added user feedback page after submission of scores
This commit is contained in:
rteusner
2017-04-18 17:05:40 +02:00
committed by GitHub
13 changed files with 232 additions and 33 deletions

View File

@ -1,8 +1,11 @@
class UserExerciseFeedback < ActiveRecord::Base
include Creation
belongs_to :user, polymorphic: true
belongs_to :exercise
validates :user_id, uniqueness: { scope: [:exercise_id, :user_type] }
def to_s
"User Exercise Feedback"
end
end