I want to be able to add an attachment icon to actiontext bubbles that have an attachment.
- if m.body <has_file_attached?>
%div{class: 'far fa-paperclip'
Kind of thing...
Even better if its also something i could use in an query like:
Message.where(<body has attachment>)
I suppose I could do something like
Message.where('body LIKE ?', "%<figure%")
But thats pretty sloppy.
Ideas?