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
Issues
- 0
Handle audio media
#301 opened - 3
Typo in Readme in test matcher descriptions
#298 opened - 7
Video content types not working since 1.3.1
#293 opened - 4
validate_content_type_of failing since 1.3.1
#292 opened - 13
- 7
- 2
Issue with `application/msword` content_types
#283 opened - 21
- 2
Issue with `concerns/*.rb` files
#281 opened - 3
Validation of SVG content type not working since update active_storage_validations to 1.3.1
#280 opened - 0
[Validator] Add a media_type validator
#277 opened - 3
[SpoofingDetection] Issue
#275 opened - 0
Refacto the aspect_ratio validator
#273 opened - 2
Processable image validator matcher fail
#271 opened - 0
[Validateur] Refacto the aspect_ratio
#270 opened - 0
- 3
Random failure on CI
#266 opened - 0
Rewrite the readme to make it shine
#264 opened - 0
- 2
Add Danish translations
#258 opened - 1