Add reminder about unread bookmarks

This commit is contained in:
2024-02-23 08:31:12 +11:00
parent a8f74b1e04
commit 6978a3dfc6
8 changed files with 110 additions and 1 deletions

View File

@@ -34,6 +34,14 @@ module Admin
def update(id:, params:)
posts.where(id: id).update(params)
end
def mark_read(id:)
posts.where(id: id).update(is_read: true)
end
def mark_unread(id:)
posts.where(id: id).update(is_read: false)
end
end
end
end