summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 8004d0d0bc8..f01555f6e09 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1740,7 +1740,7 @@ class Project < ApplicationRecord
end
def pages_deployed?
- Dir.exist?(public_pages_path)
+ pages_metadatum&.deployed?
end
def pages_group_url
@@ -1773,10 +1773,6 @@ class Project < ApplicationRecord
File.join(Settings.pages.path, full_path)
end
- def public_pages_path
- File.join(pages_path, 'public')
- end
-
def pages_available?
Gitlab.config.pages.enabled
end