Class: Virgo::SlideUploader

Inherits:
ApplicationUploader show all
Defined in:
app/uploaders/virgo/slide_uploader.rb

Instance Method Summary collapse

Instance Method Details

#extension_white_listObject


11
12
13
# File 'app/uploaders/virgo/slide_uploader.rb', line 11

def extension_white_list
  %w(jpg jpeg gif png)
end

#store_dirObject


15
16
17
# File 'app/uploaders/virgo/slide_uploader.rb', line 15

def store_dir
  "uploads/#{model.class.to_s.underscore}/image/#{model.id}"
end