Class: Spina::PhotoUploader

Inherits:
DefaultStoreUploader show all
Includes:
CarrierWave::MiniMagick
Defined in:
app/uploaders/spina/photo_uploader.rb

Instance Method Summary collapse

Methods inherited from DefaultStoreUploader

#store_dir

Instance Method Details

#extension_white_listObject



18
19
20
# File 'app/uploaders/spina/photo_uploader.rb', line 18

def extension_white_list
  %w(jpg jpeg gif png)
end

#too_large?(new_file) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/uploaders/spina/photo_uploader.rb', line 14

def too_large?(new_file)
  new_file.size > 120 * 1000
end