Merge branch 'master' of bitbucket.org:signum/debshots

This commit is contained in:
Christoph Haas 2015-06-15 13:05:10 +02:00
commit a2178d8226
9 changed files with 28 additions and 23 deletions

View file

@ -42,7 +42,7 @@ class Screenshot < ActiveRecord::Base
# Return Debshots 1.x path to allow migration of images into Paperclip filesystem schema
def image_url(size)
"#{Rails.configuration.images_path_prefix}/#{self.package.name[0]}/#{self.package.name}/#{self.id}_#{size}.png"
"live/screenshots/approved/#{self.package.name[0]}/#{self.package.name}/#{self.id}_#{size}.png"
end