Skip to content

Commit

Permalink
Customize to_s method for feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth committed Oct 22, 2023
1 parent e91b2ed commit f1ca5da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/pair_programming_exercise_feedback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class PairProgrammingExerciseFeedback < ApplicationRecord
}, _prefix: true

def to_s
'Pair Programming Exercise Feedback'
"Pair Programming Exercise Feedback #{id}"
end
end
2 changes: 1 addition & 1 deletion app/models/user_exercise_feedback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1ca5da

Please sign in to comment.