Move method to model

This commit is contained in:
Maximilian Grundke
2018-03-19 15:01:50 +01:00
parent 667d1cb38b
commit f1f1594e5b
3 changed files with 10 additions and 7 deletions

View File

@@ -3,4 +3,4 @@ h1 = @exercise_collection
= row(label: 'exercise_collections.name', value: @exercise_collection.name)
= row(label: 'exercise_collections.updated_at', value: @exercise_collection.updated_at)
= row(label: 'exercise_collections.exercises', value: @exercise_collection.exercises.count)
= row(label: 'exercises.statistics.average_worktime', value: @average.round(3).to_s + 's')
= row(label: 'exercises.statistics.average_worktime', value: @exercise_collection.average_working_time.round(3).to_s + 's')