From b70165b97f6636cd081b4f0007c3ba7161944fb0 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 28 Aug 2012 00:07:52 -0700 Subject: [PATCH] rails admin is conflicting with client side validations: see https://github.com/sferik/rails_admin/issues/985 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 3fa0449b9..ec772a54d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,7 +3,7 @@ # the COPYRIGHT file. Diaspora::Application.routes.draw do - if Rails.env.production? + if Rails.env.production? && !ENV['RAILS_ADMIN'] mount RailsAdmin::Engine => '/admin_panel', :as => 'rails_admin' end