Illustration: the project’s public image, pixelated by RepoMasters. Credits
BetaRare

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 }

Owner
igorkasyanchuk (personal account)
Stars
Stars: 1,193
Forks
Forks: 149
Language
Ruby
License
MIT
Created
2018
Topics
activestoragevalidationsrailsactive-storage
Tier
Beta (700 to 1,999 ★) What this tier means
View on GitHub

More repos by igorkasyanchuk

All 8 repos by igorkasyanchuk

Nearby in Ruby

All Ruby repos