mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-30 19:55:43 +00:00
- blob.content_type is derived via Marcel::MimeType.for, which keeps the client's declared type when the bytes match no known magic; opaque bytes declared image/png are stored as image/png with identified? true - Active Storage uploads on save, so a model validation runs before the bytes exist; the example now uploads explicitly, verifies the stored bytes, and attaches only what passed - Covers both entry points — create_and_upload! for form uploads, find_signed! for direct uploads — and fails closed when the object is missing or pending - Regenerates the skill-triggers registry digest, which covers skill content