Sha256: 7d8cdcb75345dddf9f80f9df2146ed45964ac3f8331c7dcaabf91f4c9cd7ec1c

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

# encoding: utf-8

module Storytime
  class MediaUploader < CarrierWave::Uploader::Base
    include CarrierWave::MiniMagick

    def store_dir
      "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    end
    
    version :thumb do
      process resize_to_fit: [50, 50]
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
storytime-0.0.4 app/uploaders/storytime/media_uploader.rb
storytime-0.0.2 app/uploaders/storytime/media_uploader.rb
storytime-0.0.1 app/uploaders/storytime/media_uploader.rb