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:
parent
a8d9695324
commit
1dd19c1a72
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue