lib/omniauth/strategies/heroku.rb
# This style of overriding the default means it can only be done when the class is loaded.
# Which is problematic for testing, and a bit against the grain of how the base class
# expects this to work, where consumers would explicitly override by passing in the option.
This style of overriding the default means it can only be done when the class is loaded.
Which is problematic for testing, and a bit against the grain of how the base class
expects this to work, where consumers would explicitly override by passing in the option.
This style of overriding the default means it can only be done when the class is loaded . Which is problematic for testing and a bit against the grain of how the base class expects this to work where consumers would explicitly override by passing in the option .
def heroku_api
        @heroku_api ||= Faraday.new(
          url: api_url,
          headers: {
            "Accept" => "application/vnd.heroku+json; version=3",
            "Authorization" => "Bearer #{access_token.token}"
          }
        )
      end
def heroku_api @heroku_api ||= Faraday . new ( url : api_url , headers : { "Accept" => "application/vnd.heroku+json; version=3" , "Authorization" => "Bearer #{access_token.token}" } ) end
This style of overriding the default means it can only be done when the class is loaded.
This style of overriding the default means it can only be done when the class is loaded .