Files
adamantium/slices/main/repos/workout_repo.rb

10 lines
169 B
Ruby

module Main
module Repos
class WorkoutRepo < Adamantium::DB::Repo[:workouts]
def list
workouts.order(:published_at).to_a
end
end
end
end