Sha256: 97a900685f59acee39728b6303f6a4bbc73b3fb9cbf60da4a2163b0898a0abd2
Contents?: true
Size: 632 Bytes
Versions: 57
Compression:
Stored size: 632 Bytes
Contents
module Hyrax class UploadedFileUploader < CarrierWave::Uploader::Base # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir configured_upload_path + "#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end def cache_dir configured_cache_path + "#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end private def configured_upload_path Hyrax.config.upload_path.call end def configured_cache_path Hyrax.config.cache_path.call end end end
Version data entries
57 entries across 57 versions & 1 rubygems