Sha256: 8e6f227dceaeba6bbfbe18a9714fc2be4e35dff446f5916f67e971ec14ad9e06

Contents?: true

Size: 322 Bytes

Versions: 16

Compression:

Stored size: 322 Bytes

Contents

# encoding: utf-8

module Qbrick
  class CkimageUploader < CarrierWave::Uploader::Base
    include CarrierWave::MiniMagick
    storage :file

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

    version :thumb do
      process resize_to_fit: [150, 150]
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.7 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.10 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.9 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.8 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.7 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.6 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.5 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.4 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.3 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.2 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.1 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.6.0 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.5.2 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.5.1 app/uploaders/qbrick/ckimage_uploader.rb
qbrick-2.5.0 app/uploaders/qbrick/ckimage_uploader.rb