mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:43:45 +08:00
11 lines
323 B
Ruby
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
|