Allow editing deleted posts
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user