module ParsePgArray
  def parse_array(attribute)
    # byebug
    attr = read_attribute(attribute)
    return [] unless attr.present?
    attr.map(&:to_s)
  end
end

module ParsePgArray
  def parse_array(attribute)
    attr = read_attribute(attribute)
    # --- []\n is the default value for tag_list in NomenclatureChange::Output
    return [] unless attr.present?
    return [] if attr.is_a?(String) && attr.match(/--- \[\]\n/).present?
    attr.map(&:to_s)
  end
end

Manage case for nomenclature change output default value
Manage case for nomenclature change output default value
