Anonymous uploads replaced by creation of ad-hoc users

This commit is contained in:
Christoph Haas 2017-08-17 09:31:06 +02:00
parent d9d0babb2c
commit 0bfacbee30
7 changed files with 78 additions and 48 deletions

View file

@ -48,7 +48,7 @@ class Package < ApplicationRecord
# Return a query of all approved/public screenshots of this package
def screenshots_approved
self.screenshots.find_by(approved: true)
self.screenshots.where(approved: true)
end
# Return a query of all approved/public screenshots of this package