discourse/app/serializers/group_user_serializer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
327 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2014-02-07 06:16:59 +08:00
class GroupUserSerializer < BasicUserSerializer
include UserPrimaryGroupMixin
attributes :name,
:title,
:last_posted_at,
:last_seen_at,
:added_at,
:timezone
def include_added_at?
object.respond_to? :added_at
end
2014-02-07 06:16:59 +08:00
end