class ActiveStorage::Attached::Changes::CreateOneOfMany

:nodoc:

def find_attachment

def find_attachment
  record.public_send("#{name}_attachments").detect { |attachment| attachment.blob_id == blob.id }
end