image_url() fixed. Wrong quotes. Interpolates path correctly now.

This commit is contained in:
Christoph Haas 2015-05-02 11:56:27 +02:00
parent bd03b76273
commit 84b2af5f60

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'
"#{Rails.configuration.images_path_prefix}/#{self.package.name[0]}/#{self.package.name}/#{self.id}_#{size}.png"
end