From c32776c6b8707b53dfdcefd15f7b890bf87e8277 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Fri, 6 Jun 2014 13:52:10 +1000 Subject: [PATCH] Disabling maps in production --- config/routes.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index b0cf6c6f15..be74e71469 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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