Replace manual activerecord translations with helpers
This commit is contained in:

committed by
Sebastian Serth

parent
e551c8a699
commit
f8330b39fb
@ -40,7 +40,7 @@ class SubmissionsController < ApplicationController
|
||||
end
|
||||
|
||||
# zip exercise description
|
||||
zio.put_next_entry("#{t('activerecord.models.exercise.one')}.txt")
|
||||
zio.put_next_entry("#{Exercise.model_name.human}.txt")
|
||||
zio.write("#{@submission.exercise.title}\r\n======================\r\n")
|
||||
zio.write(@submission.exercise.description)
|
||||
|
||||
|
Reference in New Issue
Block a user