Sha256: 058e99a4a91e5b9830b358c73d04568ed4bbc26ba98bf0872c1cd95623f0508e

Contents?: true

Size: 406 Bytes

Versions: 6

Compression:

Stored size: 406 Bytes

Contents

module Spotlight
  ##
  # Page, browse category, and exhibit featured image thumbnails
  class FeaturedImageUploader < CarrierWave::Uploader::Base
    storage Spotlight::Engine.config.uploader_storage

    def extension_white_list
      Spotlight::Engine.config.allowed_upload_extensions
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-spotlight-0.34.1 app/uploaders/spotlight/featured_image_uploader.rb
blacklight-spotlight-0.34.0 app/uploaders/spotlight/featured_image_uploader.rb
blacklight-spotlight-0.33.3 app/uploaders/spotlight/featured_image_uploader.rb
blacklight-spotlight-0.33.2 app/uploaders/spotlight/featured_image_uploader.rb
blacklight-spotlight-0.33.1 app/uploaders/spotlight/featured_image_uploader.rb
blacklight-spotlight-0.33.0 app/uploaders/spotlight/featured_image_uploader.rb