fix the app because the blog post is wrong?

This commit is contained in:
2024-09-12 20:16:14 -07:00
parent 6040c7aaf2
commit 006c7f62a3
5 changed files with 24 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
require 'rom-repository'
module EuchreCamp
module Repositories
class Players < ::EuchreCamp::Repository[:players]
commands :create, update: :by_pk, delete: :by_pk
def all
players.to_a
end
def by_id(id)
players.by_pk(id).one!
end
end
end
end