Skip to content

Commit

Permalink
fix: Eliminated the "attribute accessor as module_function" warning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot authored Feb 19, 2025
1 parent c793b25 commit 4bae088
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/googleauth/helpers/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ module Helpers
module Connection
module_function

attr_accessor :default_connection
def default_connection
@default_connection
end

def default_connection= conn
@default_connection = conn
end

def connection
@default_connection || Faraday.default_connection
Expand Down

0 comments on commit 4bae088

Please sign in to comment.