This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/serializers/basic_reviewable_serializer.rb
2022-07-28 11:16:33 +03:00

14 lines
247 B
Ruby

# 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