forked from OpenNeo/impress
outfit default url
This commit is contained in:
parent
220aca9311
commit
5a5b5fffc7
5 changed files with 4 additions and 2 deletions
|
@ -28,4 +28,8 @@ class OutfitImageUploader < CarrierWave::Uploader::Base
|
|||
partition_dir = "%03d" % partition_id
|
||||
"outfits/#{partition_dir}/#{model.id}"
|
||||
end
|
||||
|
||||
def default_url
|
||||
"/images/outfits/" + [version_name, "default.png"].compact.join('_')
|
||||
end
|
||||
end
|
||||
|
|
2
public/images/outfit/.gitignore
vendored
2
public/images/outfit/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
BIN
public/images/outfits/default.png
Normal file
BIN
public/images/outfits/default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
public/images/outfits/medium_default.png
Normal file
BIN
public/images/outfits/medium_default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
public/images/outfits/small_default.png
Normal file
BIN
public/images/outfits/small_default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in a new issue