mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 12:51:02 +08:00
d9ddc25808
This PR updates the admin API keys page to follow the Admin UI Guidelines. In addition it modernizes all the JavaScript involved in this admin area.
9 lines
314 B
Ruby
9 lines
314 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BasicApiKeySerializer < ApplicationSerializer
|
|
attributes :id, :truncated_key, :description, :created_at, :last_used_at, :revoked_at
|
|
|
|
has_one :user, serializer: BasicUserSerializer, embed: :objects
|
|
has_one :created_by, serializer: BasicUserSerializer, embed: :objects
|
|
end
|