diff options
author | Nick Thomas <nick@gitlab.com> | 2019-06-12 13:20:33 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-13 11:07:55 +0100 |
commit | 06440b12d839c34ab4bf1dffdd0d4f5277901f8a (patch) | |
tree | 2ba7fb47f86b4bee02c0b859794fb3118ed35ce0 /app/models/project_feature.rb | |
parent | 182104422ba9752fd3a7117d6189815ba0cdbfbb (diff) | |
download | gitlab-ce-06440b12d839c34ab4bf1dffdd0d4f5277901f8a.tar.gz |
Revert "Avoid loading objects from DB in ES results"
This reverts commit d9cb907c3e987363065136bafb2156e86bc5de26.
Diffstat (limited to 'app/models/project_feature.rb')
-rw-r--r-- | app/models/project_feature.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/project_feature.rb b/app/models/project_feature.rb index 6bcb051bff6..0542581c6e0 100644 --- a/app/models/project_feature.rb +++ b/app/models/project_feature.rb @@ -72,8 +72,6 @@ class ProjectFeature < ApplicationRecord default_value_for :wiki_access_level, value: ENABLED, allows_nil: false default_value_for :repository_access_level, value: ENABLED, allows_nil: false - scope :for_project_id, -> (project) { where(project: project) } - def feature_available?(feature, user) # This feature might not be behind a feature flag at all, so default to true return false unless ::Feature.enabled?(feature, user, default_enabled: true) |