use https for the root route according to config.force_ssl

This commit is contained in:
joshua stein 2014-10-18 22:26:56 -05:00
parent 9e8b89be1c
commit b0b9654a29

View file

@ -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"