Fixed path to screenshots
This commit is contained in:
parent
19a5ce81a5
commit
fafc3295df
1 changed files with 2 additions and 1 deletions
|
|
@ -13,8 +13,9 @@ class Screenshot < ActiveRecord::Base
|
||||||
def url(size)
|
def url(size)
|
||||||
if self.approved
|
if self.approved
|
||||||
# TODO: Make the path configurable
|
# TODO: Make the path configurable
|
||||||
basepath = "/screenshots/approved/"
|
basepath = "/screenshots/"
|
||||||
else
|
else
|
||||||
|
# TODO: Choose a path that makes unapproved screenshots unavailable
|
||||||
basepath = "/screenshots/unapproved/"
|
basepath = "/screenshots/unapproved/"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue