Rename methods to avoid confusion between OAuth and OmniAuth

This commit is contained in:
Claire
2024-02-09 15:24:17 +01:00
parent a4171ed3d1
commit fa96c733c4
5 changed files with 17 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ class Auth::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def self.provides_callback_for(provider)
define_method provider do
@provider = provider
@user = User.find_for_oauth(request.env['omniauth.auth'], current_user)
@user = User.find_for_omniauth(request.env['omniauth.auth'], current_user)
if @user.persisted?
record_login_activity