Path for importing debshots1 screenshots fixed
This commit is contained in:
parent
4abfb29599
commit
75eee8e3cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue