Updated skeleton to added critical.

modified db.import to support multiple packages
This commit is contained in:
NotZippy
2017-10-07 21:39:13 -07:00
parent aa9e0f8600
commit 637ccbd250
2 changed files with 6 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ func Build(buildFlags ...string) (app *App, compileError *revel.Error) {
// Add the db.import to the import paths.
if dbImportPath, found := revel.Config.String("db.import"); found {
sourceInfo.InitImportPaths = append(sourceInfo.InitImportPaths, dbImportPath)
sourceInfo.InitImportPaths = append(sourceInfo.InitImportPaths, strings.Split(dbImportPath,",")...)
}
// Generate two source files.