Squeeze "/"

This commit is contained in:
José Valim 2011-03-14 11:04:51 -07:00
parent 1bf7da148a
commit cb778d033f
1 changed files with 1 additions and 1 deletions

View File

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