Customize to_s
method for feedback
This commit is contained in:

committed by
Sebastian Serth

parent
e91b2ede7d
commit
f1ca5da44d
@ -39,6 +39,6 @@ class PairProgrammingExerciseFeedback < ApplicationRecord
|
|||||||
}, _prefix: true
|
}, _prefix: true
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
'Pair Programming Exercise Feedback'
|
"Pair Programming Exercise Feedback #{id}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -13,7 +13,7 @@ class UserExerciseFeedback < ApplicationRecord
|
|||||||
scope :final, -> { where(normalized_score: 1.00) }
|
scope :final, -> { where(normalized_score: 1.00) }
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
'User Exercise Feedback'
|
"User Exercise Feedback #{id}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def anomaly_notification
|
def anomaly_notification
|
||||||
|
Reference in New Issue
Block a user