def find_embedded_images
      text = self.fields.values.join(' ')
      matches = text.scan(/ei=([^&]*)/)
      encoded_ids = matches.map(&:first)
      ids = encoded_ids.map { |eid| Base64.urlsafe_decode64(URI.unescape(eid)) }
      EmbeddedImage.includes(:embeddable).find(ids)
    end
def find_embedded_images
      text = self.fields.values.join(' ')
      matches = text.scan(/ei=([^&]*)/)
      encoded_ids = matches.map(&:first)
      ids = encoded_ids.map { |eid| Base64.urlsafe_decode64(URI.unescape(eid)) }
      EmbeddedImage.includes(:embeddable).find(ids)
    end
def find_embedded_images text = self . fields . values . join ( ' ' ) matches = text . scan ( / / ) encoded_ids = matches . map ( :first ) ids = encoded_ids . map { | eid | Base64 . urlsafe_decode64 ( URI . unescape ( eid ) ) } EmbeddedImage . includes ( :embeddable ) . find ( ids ) end
Search all of the fields text and create an array of all found
 Simplec::EmbeddedImages.

 @return [Array] of Simplec::EmbeddedImages
Search all of the fields text and create an array of all found Simplec :: EmbeddedImages .