Photo filename is now better

This commit is contained in:
Raphael 2010-08-23 15:10:19 -07:00
parent 0cff5a45a2
commit dbb16faed1

View file

@ -11,9 +11,9 @@ class ImageUploader < CarrierWave::Uploader::Base
%w(jpg jpeg gif png)
end
# def filename
# model.id.to_s + File.extname(@filename)
# end
def filename
model.id.to_s + File.extname(@filename) if @filename
end
version :thumb_small do
process :resize_to_fill => [30,30]