Class: Pulitzer::BaseUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Includes:
CarrierWave::MiniMagick
Defined in:
app/uploaders/pulitzer/base_uploader.rb

Direct Known Subclasses

ImageUploader

Instance Method Summary collapse

Instance Method Details

#store_dirObject



4
5
6
# File 'app/uploaders/pulitzer/base_uploader.rb', line 4

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