summaryrefslogtreecommitdiff
path: root/app/controllers/init.go
diff options
context:
space:
mode:
authorHorus_Arch2015-02-15 17:59:13 +0100
committerHorus_Arch2015-02-15 17:59:13 +0100
commit26f781239bfcda867f19262becee3b9687a7c79d (patch)
tree04a439594815ce1b37a1a73303eee4ac7a5be487 /app/controllers/init.go
parenta69bf1307d20a395b0eca9ffae06f57a659dabf1 (diff)
downloadfreemail-26f781239bfcda867f19262becee3b9687a7c79d.tar.gz
Crashs on startup with error message 'Cannot start transaction.'
Diffstat (limited to 'app/controllers/init.go')
-rw-r--r--app/controllers/init.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/controllers/init.go b/app/controllers/init.go
index affa2e0..a5c9096 100644
--- a/app/controllers/init.go
+++ b/app/controllers/init.go
@@ -4,9 +4,7 @@ import "github.com/revel/revel"
func init() {
revel.OnAppStart(InitDB) // invoke InitDB function before
- /*
- revel.InterceptMethod((*GormController).Begin, revel.BEFORE)
- revel.InterceptMethod((*GormController).Commit, revel.AFTER)
- revel.InterceptMethod((*GormController).Rollback, revel.FINALLY)
- */
+ revel.InterceptMethod((*GormController).Begin, revel.BEFORE)
+ revel.InterceptMethod((*GormController).Commit, revel.AFTER)
+ revel.InterceptMethod((*GormController).Rollback, revel.FINALLY)
}