Photo filename is now better
This commit is contained in:
parent
0cff5a45a2
commit
dbb16faed1
1 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue