def errors
      Hash[
        model.errors.map do |attribute, errors|
          if column_name = header.column_name_for_model_attribute(attribute)
            [column_name, errors]
          else
            [attribute, errors]
          end
        end
      ]
    end
def errors
      Hash[
        model.errors.map do |attribute, errors|
          if column_name = header.column_name_for_model_attribute(attribute)
            [column_name, errors]
          else
            [attribute, errors]
          end
        end
      ]
    end
def errors Hash [ model . errors . map do | attribute , errors | if column_name = header . column_name_for_model_attribute ( attribute ) [ column_name , errors ] else [ attribute , errors ] end end ] end
Error from the model mapped back to the CSV header if we can
Error from the model mapped back to the CSV header if we can