mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Squeeze "/"
This commit is contained in:
parent
1bf7da148a
commit
cb778d033f
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ module ActionDispatch::Routing
|
|||
|
||||
def devise_omniauth_callback(mapping, controllers) #:nodoc:
|
||||
path, @scope[:path] = @scope[:path], nil
|
||||
path_prefix = "/#{mapping.path}/auth"
|
||||
path_prefix = "/#{mapping.path}/auth".squeeze("/")
|
||||
|
||||
if ::OmniAuth.config.path_prefix && ::OmniAuth.config.path_prefix != path_prefix
|
||||
warn "[DEVISE] You can only add :omniauthable behavior to one model."
|
||||
|
|
Loading…
Add table
Reference in a new issue