Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
adrianshort
/
suttonelections
réplica de
https://github.com/adrianshort/suttonelections.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
2
Wiki
Actividad
Explorar el Código
Drop sex from candidates
tags/last-sinatra-version
Adrian Short
hace 12 años
padre
1b9b16907a
commit
611cdbb1a0
Se han
modificado 2 ficheros
con
2 adiciones
y
3 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-2
models.rb
+1
-1
scripts/merge-candidates.rb
+ 1
- 2
models.rb
Ver fichero
@@ -90,8 +90,7 @@ class Candidate
property :id, Serial
property :forenames, String, :required => true
property :surname, String, :required => true, :index => true
property :sex, String
has n, :candidacies
def short_name
+ 1
- 1
scripts/merge-candidates.rb
Ver fichero
@@ -5,7 +5,7 @@ def show_candidate(id)
template = "%6s\t%50s\t%20s\t%3s"
puts template % [ c.id, c.forenames, c.surname
, c.sex
]
puts template % [ c.id, c.forenames, c.surname ]
ccy_template = "%20s\t%15s\t%20s\t%20s"
c.candidacies.each do |ccy|
Escribir
Vista previa
Cargando…
Cancelar
Guardar