diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-11-09 21:34:21 +0200 |
---|---|---|
committer | George Andrinopoulos <geoandri@gmail.com> | 2017-11-11 21:06:28 +0200 |
commit | 3963f91ee355e26778dc6a6ccfd844af3cee194f (patch) | |
tree | 85001816be7b8c629e74ebf8118cd83dc0fa1e06 /app/models/issue.rb | |
parent | d180affa210bd6e5474746bcfed006cee9d3730e (diff) | |
download | gitlab-ce-3963f91ee355e26778dc6a6ccfd844af3cee194f.tar.gz |
Move update_project_counter_caches? out of issue and merge request
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 4 |
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 |