Skip to content

Commit

Permalink
Fixes Issue #362: Fixes for the omniauth redirection issue for namesp…
Browse files Browse the repository at this point in the history
…aced model
  • Loading branch information
devilankur18 committed Dec 18, 2015
1 parent 57cb7f9 commit 974e722
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def redirect_callbacks

# derive target redirect route from 'resource_class' param, which was set
# before authentication.
devise_mapping = request.env['omniauth.params']['resource_class'].underscore.to_sym
devise_mapping = request.env['omniauth.params']['resource_class'].underscore.gsub("/", "_").to_sym
redirect_route = "#{request.protocol}#{request.host_with_port}/#{Devise.mappings[devise_mapping].fullpath}/#{params[:provider]}/callback"

# preserve omniauth info for success route. ignore 'extra' in twitter
Expand Down

0 comments on commit 974e722

Please sign in to comment.