Skip to content

Commit

Permalink
Generic omniauth_authorize_path no longer works in Rails 7, we only u…
Browse files Browse the repository at this point in the history
…se Google in any case so just use user_google_omniauth_authorize_path
  • Loading branch information
ryanfb committed Dec 4, 2024
1 parent de45c13 commit 50cb2a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/views/devise/shared/_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@
<% end %>

<%- if devise_mapping.omniauthable? %>
<%- resource_class.omniauth_providers.each do |provider| %>
<%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), method: :post %><br />
<% end %>
<%= link_to "Sign in with Google", user_google_omniauth_authorize_path, method: :post %><br />
<% end %>

0 comments on commit 50cb2a5

Please sign in to comment.