Sha256: ef0796295063c74a0409df1449b9416a0adeaf4dccab494bfb8d92c7fad45319
Contents?: true
Size: 591 Bytes
Versions: 34
Compression:
Stored size: 591 Bytes
Contents
module Spotlight ## # Exhibit contact profile pictures class AvatarUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage Spotlight::Engine.config.uploader_storage version :thumb do process crop: :avatar ## Crops this version based on original image resize_to_limit(70, 70) end # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end end
Version data entries
34 entries across 34 versions & 1 rubygems