From 1bea929d274744a7e38b28453131c331ce89f997 Mon Sep 17 00:00:00 2001 From: tomaisthorpe Date: Tue, 19 Feb 2019 08:59:57 +0000 Subject: [PATCH] Fix Handler typo in action example --- admin/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/actions.md b/admin/actions.md index 55f4116..20d00bd 100644 --- a/admin/actions.md +++ b/admin/actions.md @@ -17,7 +17,7 @@ user := Admin.AddResource(&models.User{}) user.Action(&admin.Action{ Name: "enable", - Handle: func(actionArgument *admin.ActionArgument) error { + Handler: func(actionArgument *admin.ActionArgument) error { // `FindSelectedRecords` => in bulk action mode, will return all checked records, in other mode, will return current record for _, record := range actionArgument.FindSelectedRecords() { actionArgument.Context.DB.Model(record.(*models.User)).Update("Active", true)