Class: C80Contest::BidPhotoUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- C80Contest::BidPhotoUploader
- Includes:
- CarrierWave::MiniMagick
- Defined in:
- app/uploaders/c80_contest/bid_photo_uploader.rb
Instance Method Summary collapse
Instance Method Details
#filename ⇒ Object
18 19 20 21 22 |
# File 'app/uploaders/c80_contest/bid_photo_uploader.rb', line 18 def filename if original_filename "photo_#{secure_token(4)}.#{file.extension}" end end |
#store_dir ⇒ Object
14 15 16 |
# File 'app/uploaders/c80_contest/bid_photo_uploader.rb', line 14 def store_dir "#{Rails.root}/uploads/bids/" end |