Changeset 1547


Ignore:
Timestamp:
Feb 22, 2011, 3:37:54 PM (6 years ago)
Author:
work@…
Message:
  • renamed bootstraps to example
Location:
trunk/grails-app/conf
Files:
2 added
2 deleted
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.