mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
Merge pull request #2767 from bartoszkopinski/master
Removing regexp anchors in routing constraints
This commit is contained in:
@@ -393,13 +393,13 @@ and you have set #{mapping.fullpath.inspect}. You can work around by passing
|
||||
`skip: :omniauth_callbacks` and manually defining the routes. Here is an example:
|
||||
|
||||
match "/users/auth/:provider",
|
||||
:constraints => { :provider => /\A(google|facebook)\z/ },
|
||||
:constraints => { :provider => /google|facebook/ },
|
||||
:to => "devise/omniauth_callbacks#passthru",
|
||||
:as => :omniauth_authorize,
|
||||
:via => [:get, :post]
|
||||
|
||||
match "/users/auth/:action/callback",
|
||||
:constraints => { :action => /\A(google|facebook)\z/ },
|
||||
:constraints => { :action => /google|facebook/ },
|
||||
:to => "devise/omniauth_callbacks",
|
||||
:as => :omniauth_callback,
|
||||
:via => [:get, :post]
|
||||
|
||||
Reference in New Issue
Block a user