file_validators
file_validators copied to clipboard
Support nil activestorage objects
Fixes "Module::DelegationError: size delegated to attachment, but attachment is nil"
Coverage increased (+33.8%) to 98.764% when pulling c140b79b7b16303a864b12becbc1d42d13f4ecbf on adaodesign:support_empty_activestorage_files into 00cb91448555a2a6710cfded10a07fdc1d1145fa on musaffa:master.
- Need to fix the failing tests.
Module::DelegationErrorcan be replaced with a generic error. - A similar change is needed in the file content type validator.