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 }
1.01k
stars
129
forks
source link
Add allow_nil, allow_blank methods to our matchers #224
Closed
Mth0158 closed 9 months ago
We could add
allow_nil
andallow_blank
methods to our matchers to offer similar experience to shoulda matcher gem (example)