Show only approved screenshots on title page

This commit is contained in:
Christoph Haas 2018-05-28 17:03:04 +02:00
parent 1c3f692ec0
commit 83765bec1b

View file

@ -99,7 +99,7 @@ class Screenshot < ApplicationRecord
end
def self.newest_upload
self.order(updated_at: :desc).first
self.order(updated_at: :desc).where(approved: true).first
end
def self.approved