Changeset 1384 for trunk/grails-app
- Timestamp:
- Jan 12, 2011, 10:00:59 PM (10 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r1247 r1384 60 60 // - ontologies 61 61 // - and/or studies 62 if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT || grails.util.GrailsUtil.environment == "dbnpdemo") {62 if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT || grails.util.GrailsUtil.environment == GrailsApplication.ENV_TEST || grails.util.GrailsUtil.environment == "dbnpdemo") { 63 63 // add ontologies? 64 64 if (!Ontology.count()) BootStrapTemplates.initTemplateOntologies() -
trunk/grails-app/controllers/HomeController.groovy
r1242 r1384 1 1 import dbnp.studycapturing.Study 2 2 import dbnp.studycapturing.Template 3 import org.codehaus.groovy.grails.commons.GrailsApplication 3 4 4 5 /** … … 18 19 class HomeController { 19 20 def index = { 20 if (!Template.count() ) {21 if (!Template.count() && grails.util.GrailsUtil.environment != GrailsApplication.ENV_TEST) { 21 22 redirect(controller:'setup',action:'index') 22 23 } else {
Note: See TracChangeset
for help on using the changeset viewer.