discourse/app/serializers/basic_reviewable_serializer.rb

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

14 lines
247 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class BasicReviewableSerializer < ApplicationSerializer
attributes :flagger_username, :id, :type, :pending
def flagger_username
object.created_by&.username
end
def pending
object.pending?
end
end