discourse/app/serializers/group_serializer.rb
2016-11-26 02:20:26 +08:00

12 lines
200 B
Ruby

class GroupSerializer < BasicGroupSerializer
attributes :mentionable
def mentionable
object.mentionable?(scope.user, object.id)
end
def include_mentionable?
authenticated?
end
end