Welcome to mirror list, hosted at ThFree Co, Russian Federation.

settings.rb « incident_management « concerns « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f56d6e7f53e03b1f769f24fed4d2cae98bbaae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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