https only for production

This commit is contained in:
joshua stein 2012-07-03 14:50:52 -05:00
parent 95ef42d872
commit 03b38c2599

View file

@ -1,5 +1,6 @@
Lobsters::Application.routes.draw do
root :to => "home#index", :protocol => "https://"
root :to => "home#index",
:protocol => (Rails.env == "production" ? "https://" : "http://")
get "/newest(.format)" => "home#newest"