From e30b810eaab11f32ca92c75bde049005dda79b66 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Thu, 3 Dec 2015 13:12:13 +0200 Subject: [PATCH] Story#109368800 registrar portal now allows contact to have dot in params[:id] --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index f5b81e8b5..c1cc98697 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -67,7 +67,7 @@ Rails.application.routes.draw do # end # end - resources :contacts do + resources :contacts, constraints: {:id => /[^\/]+(?=#{ ActionController::Renderers::RENDERERS.map{|e| "\\.#{e}\\z"}.join("|") })|[^\/]+/} do member do get 'delete' end