Class: C80Yax::IphotoUploader

Inherits:
BaseFileUploader
  • Object
show all
Defined in:
app/uploaders/c80_yax/iphoto_uploader.rb

Overview

грузит картинку услуги

Instance Method Summary collapse

Instance Method Details

#store_dirObject



43
44
45
# File 'app/uploaders/c80_yax/iphoto_uploader.rb', line 43

def store_dir
  'uploads/items'
end

#watermark(watermark_image, options = {}) ⇒ Object



38
39
40
41
# File 'app/uploaders/c80_yax/iphoto_uploader.rb', line 38

def watermark(watermark_image, options={})
  cache_stored_file! unless cached?
  C80Yax::Watermarker.new(current_path, watermark_image).watermark!(options)
end