debian-mirror-gitlab/app/serializers/access_token_entity_base.rb
2022-10-11 01:57:18 +05:30

8 lines
259 B
Ruby

# frozen_string_literal: true
# rubocop: disable Gitlab/NamespacedClass
class AccessTokenEntityBase < API::Entities::PersonalAccessToken
expose :expired?, as: :expired
expose :expires_soon?, as: :expires_soon
end
# rubocop: enable Gitlab/NamespacedClass