diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-21 15:09:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-21 15:09:07 +0300 |
commit | 2a040e2655fe0a99df61ad0a7bd0c27e68af0c38 (patch) | |
tree | a245cd0d6dd10f185e2fd098e371adc1ea03b72b /app/services/concerns/incident_management | |
parent | a53d2c37c4934f564caa94543dd4cf5af1703e2d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/concerns/incident_management')
-rw-r--r-- | app/services/concerns/incident_management/settings.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/services/concerns/incident_management/settings.rb b/app/services/concerns/incident_management/settings.rb new file mode 100644 index 00000000000..5f56d6e7f53 --- /dev/null +++ b/app/services/concerns/incident_management/settings.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +module IncidentManagement + module Settings + def incident_management_setting + strong_memoize(:incident_management_setting) do + project.incident_management_setting || + project.build_incident_management_setting + end + end + + def process_issues? + incident_management_setting.create_issue? + end + end +end |