Class: ImageUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Includes:
CarrierWave::RMagick
Defined in:
app/uploaders/image_uploader.rb

Instance Method Summary collapse

Instance Method Details

#extension_white_listObject



18
19
20
# File 'app/uploaders/image_uploader.rb', line 18

def extension_white_list
  %w(jpg jpeg gif png)
end

#store_dirObject



6
7
8
# File 'app/uploaders/image_uploader.rb', line 6

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