Class: BlogImageUploader

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

Instance Method Summary collapse

Instance Method Details

#store_dirObject



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

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