file_validators icon indicating copy to clipboard operation
file_validators copied to clipboard

Support nil activestorage objects

Open EdwardIII opened this issue 7 years ago • 2 comments

Fixes "Module::DelegationError: size delegated to attachment, but attachment is nil"

EdwardIII avatar Aug 08 '18 11:08 EdwardIII

Coverage Status

Coverage increased (+33.8%) to 98.764% when pulling c140b79b7b16303a864b12becbc1d42d13f4ecbf on adaodesign:support_empty_activestorage_files into 00cb91448555a2a6710cfded10a07fdc1d1145fa on musaffa:master.

coveralls avatar Aug 08 '18 11:08 coveralls

  1. Need to fix the failing tests. Module::DelegationError can be replaced with a generic error.
  2. A similar change is needed in the file content type validator.

musaffa avatar Aug 08 '18 19:08 musaffa