diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-22 17:40:55 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-04 23:49:41 +0300 |
commit | cd8e1b85b64ea9eb6a6a5b6de80e00ccc292c6ce (patch) | |
tree | e6e80bed6c39c3c68733f5f29a8ea8060956611d /app/models/concerns/group_descendant.rb | |
parent | ee2744c60db2e7d8a7e35fbc62c6d236c5ba2d0a (diff) |
Keep the `parent` method in `Project`
Diffstat (limited to 'app/models/concerns/group_descendant.rb')
-rw-r--r-- | app/models/concerns/group_descendant.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/concerns/group_descendant.rb b/app/models/concerns/group_descendant.rb index 89a91f87a46..12c16a2cf5b 100644 --- a/app/models/concerns/group_descendant.rb +++ b/app/models/concerns/group_descendant.rb @@ -3,14 +3,6 @@ module GroupDescendant expand_hierarchy_for_child(self, self, hierarchy_base) end - def parent - if self.is_a?(Project) - namespace - else - super - end - end - def expand_hierarchy_for_child(child, hierarchy, hierarchy_base) if child.parent.nil? && hierarchy_base.present? raise ArgumentError.new('specified base is not part of the tree') |