discourse/app/serializers/web_hook_group_serializer.rb

13 lines
186 B
Ruby

class WebHookGroupSerializer < GroupShowSerializer
%i{
is_group_user
is_group_owner
}.each do |attr|
define_method("include_#{attr}?") do
false
end
end
end