mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
Fix invalid paths for original size images
This commit is contained in:
parent
eaf61f1a6a
commit
5e633ab56e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue