From b0b9654a29ecd87992f1178c7cc1bbd4272e6389 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Sat, 18 Oct 2014 22:26:56 -0500 Subject: [PATCH] use https for the root route according to config.force_ssl --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 195207b..83b94d0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ Lobsters::Application.routes.draw do scope :format => "html" do root :to => "home#index", - :protocol => (Rails.env == "production" ? "https://" : "http://"), + :protocol => (Rails.application.config.force_ssl ? "https://" : "http://"), :as => "root" get "/rss" => "home#index", :format => "rss"