From 4822b77b4973e7d5c409291716ce1b58ed10c4c8 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Tue, 10 Apr 2018 16:46:22 +0530 Subject: [PATCH] Exclude available_groups from category web hooks --- app/serializers/web_hook_category_serializer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/serializers/web_hook_category_serializer.rb b/app/serializers/web_hook_category_serializer.rb index 02708ad1546..57b979e0ce7 100644 --- a/app/serializers/web_hook_category_serializer.rb +++ b/app/serializers/web_hook_category_serializer.rb @@ -3,6 +3,7 @@ class WebHookCategorySerializer < CategorySerializer %i{ can_edit notification_level + available_groups }.each do |attr| define_method("include_#{attr}?") do false