Sha256: 31fa60a5890572afb7ce22f5f5f356614d3fef0bd4caa1265aee6756331daec9
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
module C80Catoffers # грузит картинку услуги class OphotoUploader < BaseFileUploader process :resize_to_limit => [1024,768] version :thumb_big_one do p = C80Catoffers::Prop.first process :resize_to_fill => [p.big_one_width, p.big_one_height] end version :thumb_preview do p = C80Catoffers::Prop.first process :resize_to_fill => [p.preview_width, p.preview_height] end version :thumb_sm do p = C80Catoffers::Prop.first process :resize_to_fill => [p.thumb_sm_width, p.thumb_sm_height] end def store_dir 'uploads/oimages' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_catoffers-0.1.0.1 | app/uploaders/c80_catoffers/ophoto_uploader.rb |