Skip to content

Instantly share code, notes, and snippets.

@laurocaetano
Created April 22, 2014 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laurocaetano/55cf2edd5c08881030c6 to your computer and use it in GitHub Desktop.
Save laurocaetano/55cf2edd5c08881030c6 to your computer and use it in GitHub Desktop.
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