Sha256: 15aa19fad39600b8016e5213495f266f010c99e4382d4379521dd238f362e2ea

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

# encoding: utf-8
module Spotlight
  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, 120]
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 app/uploaders/spotlight/masthead_uploader.rb