New validation added: aspect ratio for your ActiveStorage files + support for Rails 6
If you need to add aspect ratio validation like validates :photo, aspect_ratio: :landspace
(or :is_16_9, :square, etc) for your ActiveStorage files:
https://github.com/igorkasyanchuk/active_storage_validations
In addition, now it supports both Rails 5 and 6.
PS: specs are passed, but look forward for your feedback.
Post a comment