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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Andrinopoulos <geoandri@gmail.com>2017-11-09 22:34:21 +0300
committerGeorge Andrinopoulos <geoandri@gmail.com>2017-11-11 22:06:28 +0300
commit3963f91ee355e26778dc6a6ccfd844af3cee194f (patch)
tree85001816be7b8c629e74ebf8118cd83dc0fa1e06 /app/models/issue.rb
parentd180affa210bd6e5474746bcfed006cee9d3730e (diff)
Move update_project_counter_caches? out of issue and merge request
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 3b3c7fb7f8b..b5abc8f57b0 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -262,10 +262,6 @@ class Issue < ActiveRecord::Base
true
end
- def update_project_counter_caches?
- state_changed? || confidential_changed?
- end
-
def update_project_counter_caches
Projects::OpenIssuesCountService.new(project).refresh_cache
end