2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-21 11:32:54 +08:00
|
|
|
class WebHookGroupSerializer < BasicGroupSerializer
|
2018-03-28 20:10:29 +08:00
|
|
|
|
|
|
|
%i{
|
|
|
|
is_group_user
|
|
|
|
is_group_owner
|
|
|
|
}.each do |attr|
|
|
|
|
define_method("include_#{attr}?") do
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|