Commit c97310e3cad096a7069a5215a96637cd2ffe11b2
1 parent
bbd8bba5
Exists in
master
#232: Use "single_quote" helper instead of "if" condition
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
@@ -64,9 +64,7 @@ production: &base | @@ -64,9 +64,7 @@ production: &base | ||
64 | # When not specified the default issue_closing_pattern as specified below will be used. | 64 | # When not specified the default issue_closing_pattern as specified below will be used. |
65 | # Tip: you can test your closing pattern at http://rubular.com | 65 | # Tip: you can test your closing pattern at http://rubular.com |
66 | # issue_closing_pattern: '([Cc]lose[sd]|[Ff]ixe[sd]) +#\d+' | 66 | # issue_closing_pattern: '([Cc]lose[sd]|[Ff]ixe[sd]) +#\d+' |
67 | - <% if !@gitlab_issue_closing_pattern.nil? %> | ||
68 | - issue_closing_pattern: '<%= @gitlab_issue_closing_pattern %>' | ||
69 | - <% end %> | 67 | + issue_closing_pattern: <%= single_quote(@gitlab_issue_closing_pattern) %> |
70 | 68 | ||
71 | ## Default project features settings | 69 | ## Default project features settings |
72 | default_projects_features: | 70 | default_projects_features: |