From 26f781239bfcda867f19262becee3b9687a7c79d Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Sun, 15 Feb 2015 17:59:13 +0100 Subject: Crashs on startup with error message 'Cannot start transaction.' --- app/controllers/init.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/controllers/init.go') 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) } -- cgit v1.2.3