1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Wrap :actions constraints in the proper hash, closes #1280

This commit is contained in:
José Valim 2011-08-29 13:29:30 +02:00
parent a8d9695324
commit 1dd19c1a72

View file

@ -350,7 +350,7 @@ module ActionDispatch::Routing
::OmniAuth.config.path_prefix = path_prefix ::OmniAuth.config.path_prefix = path_prefix
end 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 :to => controllers[:omniauth_callbacks], :as => :omniauth_callback
ensure ensure
@scope[:path] = path @scope[:path] = path