summaryrefslogtreecommitdiff
path: root/app/models/pages_domain.rb
diff options
context:
space:
mode:
authorTravis Miller <travis@travismiller.com>2017-11-13 16:05:44 +0000
committerRémy Coutable <remy@rymai.me>2017-11-13 16:05:44 +0000
commit1162d89ac49553c579ec4d049e74206893ff6302 (patch)
tree29db898298f93c35c86788bf36ea782b21dac1a9 /app/models/pages_domain.rb
parente897d8b7f7755107ab632dc5b392c1dc246eb2c8 (diff)
downloadgitlab-ce-1162d89ac49553c579ec4d049e74206893ff6302.tar.gz
Add administrative endpoint to list all pages domains
Diffstat (limited to 'app/models/pages_domain.rb')
-rw-r--r--app/models/pages_domain.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/pages_domain.rb b/app/models/pages_domain.rb
index 2e824cda525..43c77f3f2a2 100644
--- a/app/models/pages_domain.rb
+++ b/app/models/pages_domain.rb
@@ -69,6 +69,10 @@ class PagesDomain < ActiveRecord::Base
current < x509.not_before || x509.not_after < current
end
+ def expiration
+ x509&.not_after
+ end
+
def subject
return unless x509
x509.subject.to_s