diff options
| author | mo khan <mo@mokhan.ca> | 2016-12-13 09:42:53 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-12-13 09:42:53 -0700 |
| commit | aa3fbd6d48c52493382bdac6310fc8f9d3d9d7af (patch) | |
| tree | fe98b2cf7bbb40892a7848eee30ab121b2a45945 /app/controllers/api | |
| parent | d897ef582f8642e26abdc318b071e284a76ad6b1 (diff) | |
load latest first.
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/workouts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/workouts_controller.rb b/app/controllers/api/workouts_controller.rb index a3e3986..5b28be8 100644 --- a/app/controllers/api/workouts_controller.rb +++ b/app/controllers/api/workouts_controller.rb @@ -1,5 +1,5 @@ class Api::WorkoutsController < Api::Controller def index - @workouts = current_user.workouts.includes(:exercise_sets).limit(12) + @workouts = current_user.workouts.recent.includes(:exercise_sets).limit(12) end end |
