mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 03:29:31 +08:00
12 lines
200 B
Ruby
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
|