Add workouts

This commit is contained in:
2023-04-25 15:56:41 +10:00
parent 971e0007dd
commit c89b5b0998
13 changed files with 197 additions and 0 deletions

11
app/repos/workout_repo.rb Normal file
View File

@@ -0,0 +1,11 @@
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