Fix invalid paths for original size images

This commit is contained in:
Karina Kwiatek 2022-07-10 18:32:27 +02:00 committed by Karina Kwiatek
parent eaf61f1a6a
commit 5e633ab56e
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class ProfileHeaderUploader < BaseUploader class ProfileHeaderUploader < BaseUploader
def default_url(*args) def default_url(*args)
"/images/header/" + [version_name, "no_header.jpg"].compact.join('/') "/images/header/#{[version_name || args.first, 'no_header.jpg'].compact.join('/')}"
end end
version :web do version :web do

View File

@ -1,6 +1,6 @@
class ProfilePictureUploader < BaseUploader class ProfilePictureUploader < BaseUploader
def default_url(*args) def default_url(*args)
"/images/" + [version_name, "no_avatar.png"].compact.join('/') "/images/#{[version_name || args.first, 'no_avatar.png'].compact.join('/')}"
end end
version :large do version :large do