Class: AttachmentUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Includes:
UploaderHelper
Defined in:
app/uploaders/attachment_uploader.rb

Instance Method Summary collapse

Methods included from UploaderHelper

#file_storage?, #image?

Instance Method Details

#store_dirObject


8
9
10
# File 'app/uploaders/attachment_uploader.rb', line 8

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