Sha256: 071b1b8269481b6758c21bd79130e9ebc5e65b544613ed7d96a78cf892f6094b
Contents?: true
Size: 973 Bytes
Versions: 2
Compression:
Stored size: 973 Bytes
Contents
module C80Yax # грузит картинку услуги class IphotoUploader < BaseFileUploader process :resize_to_limit => [1024,768] version :thumb_sm do begin p = C80Yax::Prop.first process :resize_to_fill => [p.thumb_sm_width, p.thumb_sm_height] rescue => e Rails.logger.debug "[TRACE] <iphoto_uploader.thumb_sm> [ERROR] #{e}" end end version :thumb_md do begin p = C80Yax::Prop.first process :resize_to_fill => [p.thumb_md_width, p.thumb_md_height] rescue => e Rails.logger.debug "[TRACE] <iphoto_uploader.thumb_md> [ERROR] #{e}" end end version :thumb_lg do begin p = C80Yax::Prop.first process :resize_to_fill => [p.thumb_lg_width, p.thumb_lg_height] rescue => e Rails.logger.debug "[TRACE] <iphoto_uploader.thumb_lg> [ERROR] #{e}" end end def store_dir 'uploads/items' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
c80_yax-0.1.0.2 | app/uploaders/c80_yax/iphoto_uploader.rb |
c80_yax-0.1.0.1 | app/uploaders/c80_yax/iphoto_uploader.rb |