summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-02-23 12:36:23 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2017-02-23 12:36:23 +0100
commit2f0599b6c851c208b5332f37509df0ada52e6d6a (patch)
tree5ea1241bf48a9b8cf41d65b4fd25317ac4636e93 /app
parent29b59456d04a6e3febb70048b8b7f4b4082b8e05 (diff)
downloadgitlab-ce-2f0599b6c851c208b5332f37509df0ada52e6d6a.tar.gz
Disable unused tags count cache for Projects, Builds and Runners
+ remove complete leftover when Issues were tagged using acts_as_taggable
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb2
-rw-r--r--app/models/project.rb3
2 files changed, 1 insertions, 4 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index d8826b65fcc..de90f19f854 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -15,8 +15,6 @@ class Issue < ActiveRecord::Base
DueThisWeek = DueDateStruct.new('Due This Week', 'week').freeze
DueThisMonth = DueDateStruct.new('Due This Month', 'month').freeze
- ActsAsTaggableOn.strict_case_match = true
-
belongs_to :project
belongs_to :moved_to, class_name: 'Issue'
diff --git a/app/models/project.rb b/app/models/project.rb
index 411299eef63..96ab7fdc99d 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -70,8 +70,7 @@ class Project < ActiveRecord::Base
after_validation :check_pending_delete
- ActsAsTaggableOn.strict_case_match = true
- acts_as_taggable_on :tags
+ acts_as_taggable
attr_accessor :new_default_branch
attr_accessor :old_path_with_namespace