-
-
Save laurocaetano/55cf2edd5c08881030c6 to your computer and use it in GitHub Desktop.
This file contains 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 characters
diff --git a/lib/devise/modules.rb b/lib/devise/modules.rb | |
index 2af8820..a86572f 100644 | |
--- a/lib/devise/modules.rb | |
+++ b/lib/devise/modules.rb | |
@@ -9,7 +9,7 @@ Devise.with_options model: true do |d| | |
end | |
# Other authentications | |
- d.add_module :omniauthable, controller: :omniauth_callbacks, route: :omniauth_callback | |
+ d.add_module :omniauthable, controller: :omniauth_callbacks, route: { omniauth_callback: [nil], session: [:new] } | |
# Misc after | |
routes = [nil, :new, :edit] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment