Rename methods to avoid confusion between OAuth and OmniAuth

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

View File

@@ -17,7 +17,7 @@ class Identity < ApplicationRecord
validates :uid, presence: true, uniqueness: { scope: :provider }
validates :provider, presence: true
def self.find_for_oauth(auth)
def self.find_for_omniauth(auth)
find_or_create_by(uid: auth.uid, provider: auth.provider)
end
end