Sha256: cca873a21d976bb538a9e7720842837f9d2a85e3623a24b6ec06f0d69c32e964

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

module Statixite
  class FileUploader < CarrierWave::Uploader::Base
    include CarrierWave::MiniMagick
    storage Statixite.config.carrierwave_storage

    def store_dir
      "sites/#{model.site.site_name}/clone/statixite/uploads/#{model.id}"
    end

    version :thumb do
      process resize_to_fill: [100,100]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/uploaders/statixite/file_uploader.rb
statixite-1.0.1 app/uploaders/statixite/file_uploader.rb
statixite-1.0.0 app/uploaders/statixite/file_uploader.rb