Class: SimpleContentManagement::ImageUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Includes:
CarrierWave::MiniMagick
Defined in:
app/models/simple_content_management/image_uploader.rb

Instance Method Summary collapse

Instance Method Details

#extension_white_listObject



10
11
12
# File 'app/models/simple_content_management/image_uploader.rb', line 10

def extension_white_list
  RedactorRails.image_file_types
end

#store_dirObject



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

def store_dir
  "system/redactor_assets/pictures/#{model.id}"
end