2c6c61815e
We use controller actions to pass a newly created token and errors
7 lines
177 B
Ruby
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
|