Disabling maps in production

This commit is contained in:
Will Marshall
2014-06-06 13:52:10 +10:00
parent 54cdc545a4
commit c32776c6b8

View File

@@ -3,7 +3,12 @@ Openfoodnetwork::Application.routes.draw do
get "/#/login", to: "home#index", as: :spree_login
get "/map", to: "map#index", as: :map
if Rails.env.production?
get "/map", to: "home#index", as: :map
else
get "/map", to: "map#index", as: :map
end
resource :shop, controller: "shop" do
get :products