Sha256: e48eb480414699d4180ffc9b97d39a87bbb8969040d514ec4a93aa4abd28a519
Contents?: true
Size: 464 Bytes
Versions: 21
Compression:
Stored size: 464 Bytes
Contents
module C80Yax # грузит картинку категории class IcatUploader < BaseFileUploader process :resize_to_limit => [1024,768] 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] <icat_uploader.thumb_md> [ERROR] #{e}" end end def store_dir 'uploads/cats' end end end
Version data entries
21 entries across 21 versions & 1 rubygems