Created
November 3, 2018 11:16
-
-
Save drKreso/4f16ae48e9c378b0b409b347252607f2 to your computer and use it in GitHub Desktop.
Revisions
-
drKreso created this gist
Nov 3, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # config/initializers/oauth.rb on_failure do |env| #we need to setup env if env['omniauth.params'].present env["devise.mapping"] = Devise.mappings[:user] end Devise::OmniauthCallbacksController.action(:failure).call(env) end