summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-12 15:02:38 +0100
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-13 19:08:04 +0100
commitfc8d64b3a0fc5aeb048b2bce79b2ae93a4fcc798 (patch)
treef8646c3a71719579409b76c8b9cdf13809ea035a /app/models
parent42fcd3881fcece5c9bd4b720460d6cade573b151 (diff)
downloadgitlab-ce-fc8d64b3a0fc5aeb048b2bce79b2ae93a4fcc798.tar.gz
Remove Project#publicish
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 1f18ad78164..51952ba72a2 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -252,12 +252,6 @@ class Project < ActiveRecord::Base
where('projects.last_activity_at < ?', 6.months.ago)
end
- def publicish(user)
- visibility_levels = [Project::PUBLIC]
- visibility_levels << Project::INTERNAL if user
- where(visibility_level: visibility_levels)
- end
-
def with_push
joins(:events).where('events.action = ?', Event::PUSHED)
end