Archive bookmarks
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user