summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2017-02-18 09:19:04 -0700
committermo khan <mo@mokhan.ca>2017-02-18 09:19:04 -0700
commite113ec03ea4eee8a1bce53348c8fa5673a0ce36d (patch)
tree2501414138358f6a1aa7c76fa6b3b60a93019d51 /app/models
parent46eecdf8dc0dc8f38a6cab499fc47962a86375b7 (diff)
fix the range selection.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/workout.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/workout.rb b/app/models/workout.rb
index 69b6b4d..e2c96b1 100644
--- a/app/models/workout.rb
+++ b/app/models/workout.rb
@@ -48,4 +48,8 @@ class Workout < ApplicationRecord
yield exercise
end
end
+
+ def display_status_for(exercise)
+ progress_for(exercise).status
+ end
end