Refactor app in to its own slice
This commit is contained in:
9
slices/main/repos/workout_repo.rb
Normal file
9
slices/main/repos/workout_repo.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Main
|
||||
module Repos
|
||||
class WorkoutRepo < Adamantium::Repo[:workouts]
|
||||
def list
|
||||
workouts.order(:published_at).to_a
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user