diff --git a/app/models/education/program/with_diploma.rb b/app/models/education/program/with_diploma.rb index 41e3829fc3f170e721959fb1ed8b5b5ea899c6dd..46e126d4ad9ead2a26be4dc4059669c8bdf5c945 100644 --- a/app/models/education/program/with_diploma.rb +++ b/app/models/education/program/with_diploma.rb @@ -6,4 +6,10 @@ module Education::Program::WithDiploma class_name: 'Education::Diploma', optional: true end + + # Used by website + # https://github.com/noesya/osuny/issues/1529 + def diplomas + [diploma] + end end