Add new web hook serializers

This commit is contained in:
Vinoth Kannan
2018-03-28 17:40:29 +05:30
parent e7407d0adc
commit dc33f2d071
5 changed files with 63 additions and 3 deletions

View File

@ -0,0 +1,12 @@
class WebHookGroupSerializer < GroupShowSerializer
%i{
is_group_user
is_group_owner
}.each do |attr|
define_method("include_#{attr}?") do
false
end
end
end