Пример #1
0
func init() {
	revel.RegisterPlugin(GorpPlugin{})
	revel.InterceptMethod((*GorpController).Begin, revel.BEFORE)
	revel.InterceptMethod(Application.AddUser, revel.BEFORE)
	revel.InterceptMethod(Hotels.checkUser, revel.BEFORE)
	revel.InterceptMethod((*GorpController).Commit, revel.AFTER)
	revel.InterceptMethod((*GorpController).Rollback, revel.FINALLY)
}
Пример #2
0
func init() {
	MainCron = cron.New()
	revel.RegisterPlugin(JobsPlugin{})
}
Пример #3
0
func init() {
	revel.RegisterPlugin(app.TestRunnerPlugin{})
}