diff --git a/app/models/outfit_image_uploader.rb b/app/models/outfit_image_uploader.rb index 4aeeb4df..e10b80d2 100644 --- a/app/models/outfit_image_uploader.rb +++ b/app/models/outfit_image_uploader.rb @@ -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 diff --git a/public/images/outfit/.gitignore b/public/images/outfit/.gitignore deleted file mode 100644 index d6b7ef32..00000000 --- a/public/images/outfit/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/public/images/outfits/default.png b/public/images/outfits/default.png new file mode 100644 index 00000000..59b6b6a2 Binary files /dev/null and b/public/images/outfits/default.png differ diff --git a/public/images/outfits/medium_default.png b/public/images/outfits/medium_default.png new file mode 100644 index 00000000..75c39309 Binary files /dev/null and b/public/images/outfits/medium_default.png differ diff --git a/public/images/outfits/small_default.png b/public/images/outfits/small_default.png new file mode 100644 index 00000000..50e992bb Binary files /dev/null and b/public/images/outfits/small_default.png differ