Fixed path to screenshots

This commit is contained in:
Christoph Haas 2014-11-30 16:05:57 +01:00
parent 19a5ce81a5
commit fafc3295df

View file

@ -13,8 +13,9 @@ class Screenshot < ActiveRecord::Base
def url(size)
if self.approved
# TODO: Make the path configurable
basepath = "/screenshots/approved/"
basepath = "/screenshots/"
else
# TODO: Choose a path that makes unapproved screenshots unavailable
basepath = "/screenshots/unapproved/"
end