Module: Practical::Defaults::Shrine
- Defined in:
- app/lib/practical/defaults/shrine.rb
Class Method Summary collapse
Class Method Details
.extensions ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'app/lib/practical/defaults/shrine.rb', line 28 def self.extensions %w(jpg jpeg png webp tiff tif gif heic csv pdf docx xlsx doc xls txt rtf numbers ).freeze end |
.max_file_size ⇒ Object
4 5 6 |
# File 'app/lib/practical/defaults/shrine.rb', line 4 def self.max_file_size (20*1024*1024).freeze # 20 MB end |
.mime_types ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/lib/practical/defaults/shrine.rb', line 8 def self.mime_types %w(image/jpeg image/png image/webp image/tiff image/gif image/heic text/csv application/pdf application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/msword application/vnd.ms-excel text/plain application/rtf text/rtf application/vnd.apple.numbers ).freeze end |