class TestUnit::Generators::ScaffoldGenerator

def attributes_hash

def attributes_hash
  return {} if attributes_names.empty?
  attributes_names.filter_map do |name|
    if %w(password password_confirmation).include?(name) && attributes.any?(&:password_digest?)
      ["#{name}", '"secret"']
    elsif !virtual?(name)
      ["#{name}", "@#{singular_table_name}.#{name}"]
    end
  end.sort.to_h
end