Ignore:
Timestamp:
May 19, 2011, 1:38:23 AM (13 years ago)
Author:
gav
Message:

Configure demo mode.

File:
1 edited

Legend:

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

    r913 r932  
     1import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
     2
    13class BootStrap
    24{
     
    1517                createDataService.ensureSystemAndAdminAccess()
    1618                createDataService.createBaseData()
     19                CH.config.demoMode.enabled = true
    1720                createDataService.createDemoData()
    1821                createDataService.startSearchableIndex()
     
    2831                createDataService.ensureSystemAndAdminAccess()
    2932                createDataService.createBaseData()
     33                if(CH.config.demoMode.enabled) createDataService.createDemoData()
    3034                createDataService.startSearchableIndex()
    3135            }
Note: See TracChangeset for help on using the changeset viewer.