mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:51:50 +08:00
13 lines
187 B
Ruby
13 lines
187 B
Ruby
class WebHookGroupSerializer < BasicGroupSerializer
|
|
|
|
%i{
|
|
is_group_user
|
|
is_group_owner
|
|
}.each do |attr|
|
|
define_method("include_#{attr}?") do
|
|
false
|
|
end
|
|
end
|
|
|
|
end
|