Wrap :actions constraints in the proper hash, closes #1280
This commit is contained in:
parent
a8d9695324
commit
1dd19c1a72
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue