Replace manual activerecord translations with helpers

This commit is contained in:
Sebastian Serth
2024-04-14 14:00:51 +02:00
committed by Sebastian Serth
parent e551c8a699
commit f8330b39fb
72 changed files with 265 additions and 264 deletions

View File

@@ -30,7 +30,7 @@ working_time: time_to_f(item.exercise.average_working_time)}
end
def to_s
"#{I18n.t('activerecord.models.exercise_collection.one')}: #{name} (#{id})"
"#{ExerciseCollection.model_name.human}: #{name} (#{id})"
end
def self.ransackable_attributes(_auth_object = nil)