Class: ImageUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- ImageUploader
- Includes:
- CarrierWave::MiniMagick
- Defined in:
- lib/generators/blueberry/templates/image_uploader.rb
Instance Method Summary collapse
Instance Method Details
#extension_white_list ⇒ Object
28 29 30 |
# File 'lib/generators/blueberry/templates/image_uploader.rb', line 28 def extension_white_list %w(jpg jpeg gif png) end |
#store_dir ⇒ Object
6 7 8 |
# File 'lib/generators/blueberry/templates/image_uploader.rb', line 6 def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end |