discourse/app/serializers/web_hook_category_serialize...

16 lines
239 B
Ruby

# frozen_string_literal: true
class WebHookCategorySerializer < CategorySerializer
%i{
can_edit
notification_level
available_groups
}.each do |attr|
define_method("include_#{attr}?") do
false
end
end
end