Ignore:
Timestamp:
May 17, 2010, 5:11:29 PM (9 years ago)
Author:
keesvb
Message:

updated to grails 1.3.1, changed PPSH Gender choice in Bootstrap to be randomly chosen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r423 r424  
    599599                                              species: humanTerm,
    600600                                              template: humanTemplate)
    601                                         //.setFieldValue("Gender", ( (boolean) (y / 2) ? "Male" : "Female") )
     601                                        .setFieldValue("Gender", (Math.random() > 0.5) ? "Male" : "Female")
    602602                                        .setFieldValue("DOB", new java.text.SimpleDateFormat("dd-mm-yy").parse("01-02-19" + (10 + (int) (Math.random() * 80))))
    603603                                        .setFieldValue("Age (years)", 30)
Note: See TracChangeset for help on using the changeset viewer.