GitHub / betagouv / 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 }
JSON API: https://data.code.gouv.fr/api/v1/hosts/GitHub/repositories/betagouv%2Factive_storage_validations
Fork of igorkasyanchuk/active_storage_validations
Stars: 0
Forks: 0
Open issues: 0
License: mit
Language: Ruby
Size: 943 KB
Dependencies parsed at: Pending
Created at: over 3 years ago
Updated at: over 3 years ago
Pushed at: over 3 years ago
Last synced at: 5 days ago
Funding Links https://patreon.com/igorkasyanchuk