mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
fix #2098
This commit is contained in:
@@ -197,7 +197,8 @@ func (opt OptionFunc) Apply(c *ControllerActivator) {
|
||||
}
|
||||
|
||||
// IgnoreEmbedded is an Option which can be used to ignore all embedded struct's method handlers.
|
||||
//
|
||||
// Note that even if the controller overrides the embedded methods
|
||||
// they will be still ignored because Go doesn't support this detection so far.
|
||||
// For global affect, set the `IgnoreEmbeddedControllers` package-level variable to true.
|
||||
var IgnoreEmbedded OptionFunc = func(c *ControllerActivator) {
|
||||
c.SkipEmbeddedMethods()
|
||||
|
||||
Reference in New Issue
Block a user