mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 04:13:44 +08:00
15 lines
271 B
Ruby
15 lines
271 B
Ruby
class GroupUserSerializer < BasicUserSerializer
|
|
include UserPrimaryGroupMixin
|
|
|
|
attributes :name,
|
|
:title,
|
|
:last_posted_at,
|
|
:last_seen_at,
|
|
:added_at
|
|
|
|
def include_added_at
|
|
object.respond_to? :added_at
|
|
end
|
|
|
|
end
|