Sha256: a9e8f42cad1946b9054e4a875dbaa19adb1fc686e32d02d46f7b5fdfc1fc1a7d
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
require 'carrierwave/processing/mini_magick' module Thredded class ImageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage Thredded.file_storage def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end def extension_white_list %w(jpg jpeg gif png) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.0.12 | app/uploaders/thredded/image_uploader.rb |