diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-08-13 04:56:40 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-08-13 04:56:40 +0300 |
commit | 60aee5b7afb2ba175606fda59d1f0742f7c4270c (patch) | |
tree | 4691a1c56a9add20e91754884c54af3b24ef7e62 /app/models/project_wiki.rb | |
parent | 30f5b9a5b711b46f1065baf755e413ceced5646b (diff) |
Add method missing from EE
Diffstat (limited to 'app/models/project_wiki.rb')
-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 |