debian-mirror-gitlab/app/controllers/projects/settings/access_tokens_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
565 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
module Projects
module Settings
class AccessTokensController < Projects::ApplicationController
2023-01-13 00:05:48 +05:30
include RenderAccessTokens
2022-03-02 08:16:31 +05:30
include AccessTokensActions
2020-05-24 23:13:21 +05:30
2021-04-29 21:17:54 +05:30
layout 'project_settings'
2023-05-27 22:25:52 +05:30
feature_category :system_access
2021-01-03 14:25:43 +05:30
2022-03-02 08:16:31 +05:30
alias_method :resource, :project
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
def resource_access_tokens_path
namespace_project_settings_access_tokens_path
2020-05-24 23:13:21 +05:30
end
2022-11-25 23:54:43 +05:30
private
def represent(tokens)
::ProjectAccessTokenSerializer.new.represent(tokens, project: resource)
end
2020-05-24 23:13:21 +05:30
end
end
end