diff options
| author | Horus_Arch | 2015-02-15 17:59:13 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-15 17:59:13 +0100 |
| commit | 26f781239bfcda867f19262becee3b9687a7c79d (patch) | |
| tree | 04a439594815ce1b37a1a73303eee4ac7a5be487 /app/controllers/init.go | |
| parent | a69bf1307d20a395b0eca9ffae06f57a659dabf1 (diff) | |
| download | freemail-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.go | 8 |
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) } |
