Class: PhrasingImageUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- PhrasingImageUploader
- Defined in:
- app/uploaders/phrasing_image_uploader.rb
Instance Method Summary collapse
Instance Method Details
#extension_white_list ⇒ Object
4 5 6 |
# File 'app/uploaders/phrasing_image_uploader.rb', line 4 def extension_white_list %w(jpg jpeg gif png) end |
#store_dir ⇒ Object
8 9 10 |
# File 'app/uploaders/phrasing_image_uploader.rb', line 8 def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end |