Files
adamantium/app/repos/workout_repo.rb
2023-04-25 15:56:41 +10:00

11 lines
210 B
Ruby

module Adamantium
module Repos
class WorkoutRepo < Adamantium::Repo[:workouts]
commands :create, update: :by_pk
def list
workouts.order(:published_at).to_a
end
end
end
end