Add highlights

This commit is contained in:
2024-04-05 21:35:39 +11:00
parent d02b74621a
commit 38d5108979
22 changed files with 188 additions and 25 deletions

View File

@@ -0,0 +1,12 @@
module Admin
module Repos
class HighlightRepo < Adamantium::Repo[:highlights]
commands :create, delete: :by_pk
def list_all
highlights
.to_a
end
end
end
end

View File

@@ -71,7 +71,7 @@ module Admin
def find(id:)
posts
.combine(:tags)
.combine(:tags, :highlights)
.where(id: id).one!
end