【发布时间】:2014-02-15 16:50:16
【问题描述】:
我有 ImageUploader 类,我想在保存特定版本后以图像的原始大小保存我的原始图像。帮我解决这个问题
上传者
class ImageUploader < IconBase
process :resize_to_fill => [490,68]
version :normal do
process resize_to_fill: [245,34]
def full_filename(for_file = model.logo.file)
"avatar1.png"
end
end
def filename
"avatar.png"
end
end
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 carrierwave