app/models/user.rb
## array of all ex workouts with duration
array of all ex workouts with duration
array of all ex workouts with duration
def total_time_exercise_workouts
     self.exercise_workouts.select do |ex|
       ex.duration
     end
   end
def total_time_exercise_workouts self . exercise_workouts . select do | ex | ex . duration end end
array of all ex workouts with duration
array of all ex workouts with duration