Sha256: 2367026ec3267b178de2ffa63ab89f7e7d697267e8e742664fb8aa3b264bbad7
Contents?: true
Size: 553 Bytes
Versions: 6
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true module Decidim # This class deals with uploading images to Decidim It is intended to just # hold the uploads configuration, so you should inherit from this class and # then tweak any configuration you need. class ApplicationUploader < 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 "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems