image_url() fixed. Wrong quotes. Interpolates path correctly now.
This commit is contained in:
parent
bd03b76273
commit
84b2af5f60
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'
|
||||
"#{Rails.configuration.images_path_prefix}/#{self.package.name[0]}/#{self.package.name}/#{self.id}_#{size}.png"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue