Sha256: b47409b4f4a7fa23a803525698c197d5c12b73662e1b099d7e45de4c49af3a3e
Contents?: true
Size: 453 Bytes
Versions: 63
Compression:
Stored size: 453 Bytes
Contents
# frozen_string_literal: true module Spotlight ## # Sir-trevor image widget uploads class AttachmentUploader < CarrierWave::Uploader::Base storage Spotlight::Engine.config.uploader_storage # 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
63 entries across 63 versions & 1 rubygems