Manage books page via admin area

This commit is contained in:
2023-12-22 20:37:12 +11:00
parent 6a3409746e
commit 900fdea472
8 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
module Admin
module Repos
class BookRepo < Adamantium::Repo[:posts]
commands update: :by_pk
def list_all
posts
.where(post_type: "book")
.to_a
end
end
end
end