discourse/app/serializers/group_serializer.rb

12 lines
200 B
Ruby
Raw Normal View History

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