From 84b2af5f600aeb8f120577526acf8d342354fcec Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 2 May 2015 11:56:27 +0200 Subject: [PATCH] image_url() fixed. Wrong quotes. Interpolates path correctly now. --- app/models/screenshot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/screenshot.rb b/app/models/screenshot.rb index a9b4c2c..5524ab0 100644 --- a/app/models/screenshot.rb +++ b/app/models/screenshot.rb @@ -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