0

I've tried adding the remove_attachment plugin, but nothing works. The attachment is still attached to the User. I've also tried just sending "null" and empty objects as the image, this does not work either.

class ImageUploader < Shrine
    plugin :remove_attachment

    Attacher.validate do
        validate_mime_type %w[image/jpeg image/png image/webp]
        validate_max_size  1*1000*1000
    end
end
Cinta
  • 453
  • 5
  • 22

0 Answers0