The new ActiveStorage framework in Rails 5.2 provide just that, I just cant find anything about validating them.
Den lördag 2 september 2017 kl. 00:15:59 UTC+2 skrev Hassan Schroeder:
> I can't find any docs about attachment validations. Are there any? If not,
> will it be added?
Validations are intended to be a part of the Rails 6 release. Work to support this has already begun.
In the meantime, if you need validations for Active Storage attachments right now, you can roll your own using custom validators. I have written a few blog posts on the subject that you might find helpful: