Show progressbar on moderation screen
This commit is contained in:
parent
57ee7c849c
commit
f12f61b23c
3 changed files with 17 additions and 1 deletions
|
|
@ -78,4 +78,9 @@ class Screenshot < ActiveRecord::Base
|
|||
|
||||
return text
|
||||
end
|
||||
|
||||
# Return the number of screenshots that need to be approved
|
||||
def self.unapproved
|
||||
self.where(approved: false)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue