Fix RfC filter for unnamed study groups

This commit is contained in:
Sebastian Serth
2021-04-09 10:25:41 +02:00
parent 1e5a9b0825
commit 1d5ceebd7b
2 changed files with 2 additions and 6 deletions

View File

@ -16,10 +16,6 @@ class StudyGroup < ApplicationRecord
end
def to_s
if name.blank?
"StudyGroup " + id.to_s
else
name
end
name.presence || "StudyGroup #{id}"
end
end