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