Sha256: 84328025cb2829e180cfb7f4e3b73d3a75eb09115fd12b1129acb90db56d4819
Contents?: true
Size: 492 Bytes
Versions: 34
Compression:
Stored size: 492 Bytes
Contents
# encoding: utf-8 module Spotlight ## # Exhibit and browse category custom mastheads class MastheadUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage Spotlight::Engine.config.uploader_storage version :cropped do process crop: :image ## Crops this version based on original image process resize_to_fill: [1800, 180] end 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