Added per-user counter of approved/rejected screenshots
This commit is contained in:
parent
c97a711e6b
commit
9635b3968c
5 changed files with 55 additions and 27 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue