diff options
author | Robert Speicher <robert@gitlab.com> | 2016-08-15 16:53:58 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-08-15 16:53:58 +0000 |
commit | 640e485c6aa19f8fca1be7fc45e7f65da4469fbd (patch) | |
tree | 35c70a8d37d963b4fafdf140bb0a7ddb1ce1bb99 | |
parent | 06e3bb9f232329674bdc162dc8f973a19b03f3c4 (diff) | |
parent | 60aee5b7afb2ba175606fda59d1f0742f7c4270c (diff) | |
download | gitlab-ce-640e485c6aa19f8fca1be7fc45e7f65da4469fbd.tar.gz |
Merge branch 'ee-parity' into 'master'
Add method missing from EE
## Why was this MR needed?
`ProjectWiki#repository_exists?` is present in EE but not on CE, and there's no particular reason why it shouldn't
See merge request !5802
-rw-r--r-- | app/models/project_wiki.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |