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