Re: [Rails-core] Re: [ActiveStorage] Feature Request: attachment validations

2018-11-26 Thread ifomichev
Hmmm... Hi Rob, thanks for your reply! I see how one can validate presence of a blob from this change, but I'm not sure what could be the syntax for validating content type, filename, or file size after this change. Could you please elaborate on that? The commit you referred to provides

Re: [Rails-core] Re: [ActiveStorage] Feature Request: attachment validations

2018-11-26 Thread Rob Zolkos
Rails 6 will have validations for AS https://github.com/rails/rails/commit/e8682c5bf051517b0b265e446aa1a7eccfd47bf7#diff-c76fb6202b7f95a08fe12f40c4999ac9R11 On Mon, Nov 26, 2018 at 3:36 PM wrote: > Hi all, > > I think this is one of the essential features that are missing in Active > Storage.

[Rails-core] Re: [ActiveStorage] Feature Request: attachment validations

2018-11-26 Thread ifomichev
Hi all, I think this is one of the essential features that are missing in Active Storage. Thus I'm pretty sure it's gonna be implemented pretty soon one way or another, and I wonder what is the maintainers' plan for it, if there is any. I know about active_storage_validations gem, but its