Changeset 1547

Show
Ignore:
Timestamp:
22-02-11 15:37:54 (3 years ago)
Author:
work@…
Message:

- renamed bootstraps to example

Location:
trunk/grails-app/conf
Files:
2 added
2 removed
1 modified

Legend:

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

    r1546 r1547  
    7676                if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT || grails.util.GrailsUtil.environment == GrailsApplication.ENV_TEST || grails.util.GrailsUtil.environment == "dbnpdemo") { 
    7777                        // add ontologies? 
    78                         if (!Ontology.count()) BootStrapTemplates.initTemplateOntologies() 
     78                        if (!Ontology.count()) ExampleTemplates.initTemplateOntologies() 
    7979 
    8080                        // add templates? 
    81                         if (!Template.count()) BootStrapTemplates.initTemplates() 
     81                        if (!Template.count()) ExampleTemplates.initTemplates() 
    8282 
    8383                        // add example studies? 
    84                         if (!Study.count() && grails.util.GrailsUtil.environment != "demo" && grails.util.GrailsUtil.environment != GrailsApplication.ENV_TEST) BootStrapStudies.addExampleStudies(SecUser.findByUsername('user'), SecUser.findByUsername('admin')) 
     84                        if (!Study.count() && grails.util.GrailsUtil.environment != "demo" && grails.util.GrailsUtil.environment != GrailsApplication.ENV_TEST) ExampleStudies.addExampleStudies(SecUser.findByUsername('user'), SecUser.findByUsername('admin')) 
    8585                } 
    8686