Added per-user counter of approved/rejected screenshots

This commit is contained in:
Christoph Haas 2021-03-21 23:06:51 +01:00
parent c97a711e6b
commit 9635b3968c
5 changed files with 55 additions and 27 deletions

View file

@ -79,10 +79,6 @@ class User < ApplicationRecord
end
end
def approved_screenshots
self.screenshots.where(approved: true)
end
# Seamlessly create a user account for the current visitor.
# It helps track uploads because uploaded screenshots get assigned
# to this user record.