discourse/app/serializers/reviewable_history_serializer.rb
Loïc Guitaut 26fe047724 DEV: Use AR enums in reviewables related code
This is the first patch of many to replace our custom enums in Ruby by
the ones provided by `ActiveRecord`.
2022-09-22 14:44:27 +02:00

11 lines
323 B
Ruby

# frozen_string_literal: true
class ReviewableHistorySerializer < ApplicationSerializer
attributes :id, :created_at
attribute :reviewable_history_type_for_database, key: :reviewable_history_type
attribute :status_for_database, key: :status
has_one :created_by, serializer: BasicUserSerializer, root: 'users'
end