Sha256: 7be9b9c43ec04c7bd3b98ecdfbe17368fc8165169f6e66a4b771f4bda4d3f09b

Contents?: true

Size: 181 Bytes

Versions: 4

Compression:

Stored size: 181 Bytes

Contents

module Comable
  class ImageUploader < CarrierWave::Uploader::Base
    storage :file

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comable-core-0.7.1 app/uploaders/comable/image_uploader.rb
comable-core-0.7.0 app/uploaders/comable/image_uploader.rb
comable-core-0.7.0.beta2 app/uploaders/comable/image_uploader.rb
comable-core-0.7.0.beta1 app/uploaders/comable/image_uploader.rb