diff options
Diffstat (limited to 'lib/api/entities/ci/reset_token_result.rb')
-rw-r--r-- | lib/api/entities/ci/reset_token_result.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/entities/ci/reset_token_result.rb b/lib/api/entities/ci/reset_token_result.rb index 4dbf831582b..f0b1de6a5a7 100644 --- a/lib/api/entities/ci/reset_token_result.rb +++ b/lib/api/entities/ci/reset_token_result.rb @@ -4,7 +4,8 @@ module API module Entities module Ci class ResetTokenResult < Grape::Entity - expose(:token) {|object| object} + expose(:token) + expose(:token_expires_at, if: -> (object, options) { object.expirable? }) end end end |