From cb778d033ffa13389173caafded0ab4fee9c5801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 14 Mar 2011 11:04:51 -0700 Subject: [PATCH] Squeeze "/" --- lib/devise/rails/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise/rails/routes.rb b/lib/devise/rails/routes.rb index 5d0d60f1..6e4acc3a 100644 --- a/lib/devise/rails/routes.rb +++ b/lib/devise/rails/routes.rb @@ -264,7 +264,7 @@ module ActionDispatch::Routing def devise_omniauth_callback(mapping, controllers) #:nodoc: path, @scope[:path] = @scope[:path], nil - path_prefix = "/#{mapping.path}/auth" + path_prefix = "/#{mapping.path}/auth".squeeze("/") if ::OmniAuth.config.path_prefix && ::OmniAuth.config.path_prefix != path_prefix warn "[DEVISE] You can only add :omniauthable behavior to one model."