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
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
version :web do

View file

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