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:
authorLin Jen-Shin <godfat@godfat.org>2018-08-30 21:49:26 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-09-11 13:45:49 +0300
commitd548d8199033cfb0e067dfe2c32ff2397386088d (patch)
treeece2e0fe7e0ec6dd486babb68cd56341d7609688 /app/models/concerns/protected_tag_access.rb
parent07da8f9128f507bb20d5694c1c0b5ca73e58d203 (diff)
Fix how we use EE::ProtectedRefAccess
This is a mess... Using prepend will give a different ancestors chain we're not expecting. To fix this we'll need to know what exactly methods we want to use in each classes using this module.
Diffstat (limited to 'app/models/concerns/protected_tag_access.rb')
-rw-r--r--app/models/concerns/protected_tag_access.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/concerns/protected_tag_access.rb b/app/models/concerns/protected_tag_access.rb
index 04bd54d6b1c..3f5696c0749 100644
--- a/app/models/concerns/protected_tag_access.rb
+++ b/app/models/concerns/protected_tag_access.rb
@@ -2,10 +2,9 @@
module ProtectedTagAccess
extend ActiveSupport::Concern
+ include ProtectedRefAccess
included do
- include ProtectedRefAccess
-
belongs_to :protected_tag
delegate :project, to: :protected_tag