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 }

Main metrics

Overview

Name With Ownerigorkasyanchuk/active_storage_validations
Primary LanguageRuby
Program languageRuby (Language Count: 4)
Platform
License:MIT License
Release Count20
Last Release Name3.0.1 (Posted on )
First Release Name0.9.8 (Posted on )
Created At2018-08-28 15:59:26
Pushed At2025-07-11 06:45:33
Last Commit At2025-07-09 22:55:46
Stargazers Count1109
Watchers Count11
Fork Count143
Commits Count733
Has Issues Enabled
Issues Count174
Issue Open Count11
Pull Requests Count195
Pull Requests Open Count2
Pull Requests Close Count23
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top