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
1 changed files with 1 additions and 1 deletions

View File

@ -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