From 1dd19c1a723a48078d99456de1c8c290dcc9c81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 29 Aug 2011 13:29:30 +0200 Subject: [PATCH] Wrap :actions constraints in the proper hash, closes #1280 --- 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 f59d7181..c6db7d5a 100644 --- a/lib/devise/rails/routes.rb +++ b/lib/devise/rails/routes.rb @@ -350,7 +350,7 @@ module ActionDispatch::Routing ::OmniAuth.config.path_prefix = path_prefix end - match "#{path_prefix}/:action/callback", :action => Regexp.union(mapping.to.omniauth_providers.map(&:to_s)), + match "#{path_prefix}/:action/callback", :constraints => { :action => Regexp.union(mapping.to.omniauth_providers.map(&:to_s)) }, :to => controllers[:omniauth_callbacks], :as => :omniauth_callback ensure @scope[:path] = path