appirits/comable

View on GitHub
core/app/uploaders/comable/image_uploader.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Comable
  class ImageUploader < CarrierWave::Uploader::Base
    storage :file

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