gitlab-org--gitlab-foss/app/helpers/deploy_tokens_helper.rb
Kamil Trzciński 2c6c61815e Get rid of Redis when dealing with deploy tokens
We use controller actions to pass a newly created token and errors
2018-04-06 21:20:16 -05:00

7 lines
177 B
Ruby

module DeployTokensHelper
def expand_deploy_tokens_section?(deploy_token)
deploy_token.persisted? ||
deploy_token.errors.present? ||
Rails.env.test?
end
end