Allow editing deleted posts

This commit is contained in:
2023-03-20 21:07:12 +11:00
parent f40dd2392d
commit 0b2432fd60
2 changed files with 8 additions and 1 deletions

View File

@@ -161,6 +161,13 @@ module Adamantium
.one!
end
def fetch_unpublished!(slug)
posts
.combine(:tags)
.where(slug: slug)
.one!
end
def find!(id)
posts
.by_pk(id)