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 }
https://www.railsjazz.com/
MIT License
1.01k stars 129 forks source link

Add allow_nil, allow_blank methods to our matchers #224

Closed Mth0158 closed 9 months ago

Mth0158 commented 9 months ago

We could add allow_nil and allow_blank methods to our matchers to offer similar experience to shoulda matcher gem (example)