Archive bookmarks

This commit is contained in:
2023-05-07 11:42:08 +10:00
parent 3fddc1757e
commit 2de61827a6
4 changed files with 22 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ module Admin
posts.where(id: id).delete
end
def archive(id:)
posts.where(id: id).update(published_at: nil)
end
def update(id:, cached_content:)
posts.where(id: id).update(cached_content: cached_content)
end