outfit default url

This commit is contained in:
Emi Matchu 2012-03-31 22:27:13 -05:00
parent 220aca9311
commit 5a5b5fffc7
5 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -1,2 +0,0 @@
*
!.gitignore

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB