From 0111cb4cc2baec873f6cded5c630729ed9d7352a Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 24 Nov 2014 17:54:17 +1100 Subject: [PATCH] FEATURE: serialize the fact we are https in about --- app/models/about.rb | 4 ++++ app/serializers/about_serializer.rb | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/about.rb b/app/models/about.rb index ceaff5ea968..83dea16ec17 100644 --- a/app/models/about.rb +++ b/app/models/about.rb @@ -8,6 +8,10 @@ class About Discourse::VERSION::STRING end + def https + SiteSetting.use_https + end + def title SiteSetting.title end diff --git a/app/serializers/about_serializer.rb b/app/serializers/about_serializer.rb index b56a1658807..63d795499e6 100644 --- a/app/serializers/about_serializer.rb +++ b/app/serializers/about_serializer.rb @@ -6,5 +6,6 @@ class AboutSerializer < ApplicationSerializer :description, :title, :locale, - :version + :version, + :https end