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:
@@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user