The initial release of Active Storage (as part of Rails 5.2) did not include the ability to validate attachments.
On Friday, September 1, 2017 at 5:09:37 PM UTC-4, Tobias Sandelius wrote:
-- 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:
Hope that helps!
On Friday, September 1, 2017 at 5:09:37 PM UTC-4, Tobias Sandelius wrote:
I can't find any docs about attachment validations. Are there any? If not, will it be added?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5d3f3686-c515-40d9-acb1-c60fb8d9e62f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment