From 5285931e6802f8120cc0953ae374bbc4443e9b70 Mon Sep 17 00:00:00 2001 From: Zach Grande Date: Tue, 24 Sep 2024 12:35:38 -0700 Subject: [PATCH] fix: avoid naming collision with helper method --- lib/omniauth/strategies/microsoft_graph.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/omniauth/strategies/microsoft_graph.rb b/lib/omniauth/strategies/microsoft_graph.rb index 8894eb1..1d23781 100644 --- a/lib/omniauth/strategies/microsoft_graph.rb +++ b/lib/omniauth/strategies/microsoft_graph.rb @@ -84,7 +84,7 @@ def get_access_token(request) verifier = request.params['code'] redirect_uri = request.params['redirect_uri'] || request.params['callback_url'] - log("[OAUTH DEBUG 2024-09-24] request.body.read: #{request.body.read}") + log_message("[OAUTH DEBUG 2024-09-24] request.body.read: #{request.body.read}") request.body.rewind if verifier && request.xhr? @@ -136,7 +136,7 @@ def verify_email(auth_hash, access_token) OmniAuth::MicrosoftGraph::DomainVerifier.verify!(auth_hash, access_token, options) end - def log(message) + def log_message(message) puts message end end