mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 13:17: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
|