func init() { // revel.OnAppStart(InitDb) revel.InterceptMethod((*AbstractController).Begin, revel.BEFORE) revel.InterceptMethod((*AbstractController).Commit, revel.AFTER) revel.InterceptMethod((*AbstractController).Rollback, revel.FINALLY) }
func init() { revel.InterceptMethod((*Transactional).Begin, revel.BEFORE) revel.InterceptMethod((*Transactional).Commit, revel.AFTER) revel.InterceptMethod((*Transactional).Rollback, revel.FINALLY) }