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"