Last active
September 20, 2018 17:39
-
-
Save chelseatroy/2c5f18625463669c3e3173c16294f4a5 to your computer and use it in GitHub Desktop.
Example: Data Import as a Process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WorkoutsController < ApplicationController | |
... | |
def index | |
@workouts = Workout.complete | |
end | |
def fix_incompletes | |
@workouts = Workout.needs_revision | |
end | |
def performance | |
workouts = Workout.complete | |
@overall_strength_chart = calculate_strength_changes(workouts) | |
@aerobic_capacity_chart = calculate_aerobic_capacity_changes(workouts) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment