discourse/app/serializers/web_hook_category_serializer.rb

8 lines
208 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-03-28 07:10:29 -05:00
class WebHookCategorySerializer < CategorySerializer
%i[can_edit notification_level available_groups].each do |attr|
define_method("include_#{attr}?") { false }
2018-03-28 07:10:29 -05:00
end
end