igorkasyanchuk/active_storage_validations
Do it like => validates :photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, limit: { min: 1, max: 3 }, aspect_ratio: :landscape, dimension: { width: { in: 800..1600 }
RubyMIT
Stargazers
- Alexey-Lukin@activebridge
- AlexVPopov@toptal
- apuntovanini@uidu-org
- baarentoSoftServe
- billgloffZEROSPHERE
- bladebhsNizhny Tagil, Russia
- ckritzinger
- creadoneMoscow
- cseelusIMEOS
- dereknguyen269Ho Chi Minh City, Vietnam
- durninMontevideo, Uruguay
- esaul
- Eth3rnit3@buyco
- fedekau@streaver
- FiyordenPéruwelz (Belgium)
- guilleiguaran@Treasure-Data
- igorkasyanchuk(available for hire)
- leo424yflyism.org
- liukun-lkHangzhou, China
- mkhairi@tekno-labs
- MOZGIII
- murdoch@getaroom
- nemonwebRussia
- ngan@Gusto
- olimart
- pcorderoSan Ramón, Alajuela, Costa Rica
- pcriv@WeTransfer
- pedantic-git@fishpercolator
- rbqGermany, NRW
- RobertAudi@CapSens
- sebkkomCorfu, Greece
- shah743Islamabad, PK
- stanTokyo, Japan
- turbodHungary
- wbotelhosSUBSCRIBE
- zach-taylor@assuranceiq