From 5e633ab56ef4fd8e118ea7f0898fa837992fdc31 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 10 Jul 2022 18:32:27 +0200 Subject: [PATCH] Fix invalid paths for original size images --- app/uploaders/profile_header_uploader.rb | 2 +- app/uploaders/profile_picture_uploader.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/uploaders/profile_header_uploader.rb b/app/uploaders/profile_header_uploader.rb index 53a824c2..23a47588 100644 --- a/app/uploaders/profile_header_uploader.rb +++ b/app/uploaders/profile_header_uploader.rb @@ -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 diff --git a/app/uploaders/profile_picture_uploader.rb b/app/uploaders/profile_picture_uploader.rb index 99d0ce13..83d987f6 100644 --- a/app/uploaders/profile_picture_uploader.rb +++ b/app/uploaders/profile_picture_uploader.rb @@ -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