summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-01-19 09:53:40 -0500
committerJosh Frye <joshfng@gmail.com>2016-01-19 09:57:00 -0500
commitae6080c791ee8b6aedd7091e2a321f5fe41f0978 (patch)
treea296f5c59539d6b269729cafc20dbdf20ff0ec7b /app
parent11797df1af483156b8cf11290c49c3f4d6089d99 (diff)
downloadgitlab-ce-ae6080c791ee8b6aedd7091e2a321f5fe41f0978.tar.gz
Add specs. Adjust filter.
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 56db0ce6cf6..60729d93187 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -273,7 +273,7 @@ class Project < ActiveRecord::Base
end
def search_by_visibility(level)
- where(visibility_level: visibility_levels[level.capitalize])
+ where(visibility_level: Gitlab::VisibilityLevel.const_get(level.upcase))
end
def search_by_title(query)