Re-publish bookmarks

This commit is contained in:
2023-07-20 21:49:02 +10:00
parent 0c49010f0d
commit e6936755da
5 changed files with 26 additions and 5 deletions

View File

@@ -27,6 +27,10 @@ module Admin
posts.where(id: id).update(published_at: nil)
end
def publish(id:)
posts.where(id: id).update(published_at: Time.now)
end
def update(id:, cached_content:)
posts.where(id: id).update(cached_content: cached_content)
end