From 60aee5b7afb2ba175606fda59d1f0742f7c4270c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= Date: Fri, 12 Aug 2016 21:56:40 -0400 Subject: [PATCH] Add method missing from EE --- app/models/project_wiki.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb index a255710f577..46f70da2452 100644 --- a/app/models/project_wiki.rb +++ b/app/models/project_wiki.rb @@ -56,6 +56,10 @@ class ProjectWiki end end + def repository_exists? + !!repository.exists? + end + def empty? pages.empty? end