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)
|
%w(jpg jpeg gif png)
|
||||||
end
|
end
|
||||||
|
|
||||||
# def filename
|
def filename
|
||||||
# model.id.to_s + File.extname(@filename)
|
model.id.to_s + File.extname(@filename) if @filename
|
||||||
# end
|
end
|
||||||
|
|
||||||
version :thumb_small do
|
version :thumb_small do
|
||||||
process :resize_to_fill => [30,30]
|
process :resize_to_fill => [30,30]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue