Customize to_s method for feedback

This commit is contained in:
Sebastian Serth
2023-10-22 11:38:47 +02:00
committed by Sebastian Serth
parent e91b2ede7d
commit f1ca5da44d
2 changed files with 2 additions and 2 deletions

View File

@ -39,6 +39,6 @@ class PairProgrammingExerciseFeedback < ApplicationRecord
}, _prefix: true
def to_s
'Pair Programming Exercise Feedback'
"Pair Programming Exercise Feedback #{id}"
end
end

View File

@ -13,7 +13,7 @@ class UserExerciseFeedback < ApplicationRecord
scope :final, -> { where(normalized_score: 1.00) }
def to_s
'User Exercise Feedback'
"User Exercise Feedback #{id}"
end
def anomaly_notification