discourse/app/serializers/group_user_serializer.rb

17 lines
302 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2014-02-06 17:16:59 -05:00
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
2014-02-06 17:16:59 -05:00
end