RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in