discourse/app/serializers/group_user_serializer.rb

8 lines
185 B
Ruby

class GroupUserSerializer < BasicUserSerializer
attributes :name, :title, :last_posted_at, :last_seen_at, :added_at
def include_added_at
object.respond_to? :added_at
end
end