Skip to main content
buildradar
Sign in

igorkasyanchuk/active_storage_validations

@igorkasyanchuk

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 }

Stars
1,191
Forks
151
Language
Ruby
License
MIT
Last push
1 week ago
Rubyrailsactive-storageactivestoragevalidations

No related intel yet

This repo has not appeared in any of the sources the radar tracks. The collector runs on a schedule — check back once it covers this repo.