1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-30 00:07:04 +00:00

fix mvc/ideas/1/main.go->AfterActivation

Former-commit-id: bf3d8227793fba76f0f7349d82d1200275ac9147
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-18 02:24:53 +02:00
parent d5a38a0cd6
commit 4fb46bf1f3
3 changed files with 6 additions and 4 deletions

View File

@@ -73,8 +73,8 @@ func (c *TodoController) BeforeActivation(b mvc.BeforeActivation) {
b.Handle("GET", "/custom", "Custom")
}
func (c *TodoController) AfterActivation(b mvc.BeforeActivation) {
if !b.IsRequestScoped() {
func (c *TodoController) AfterActivation(a mvc.AfterActivation) {
if !a.IsRequestScoped() {
panic("TodoController should be request scoped, we have a 'Session' which depends on the context.")
}
}