Fix invalid paths for original size images
This commit is contained in:
parent
eaf61f1a6a
commit
5e633ab56e
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue