arunagw/omniauth-foursquare — pull request #7 by paulosman (2012-09-17 04:50:30+00:00)
Title: Prevent unnecessary API requests

As is, the omniauth-foursquare strategy makes numerous, identical HTTP GET requests to the Foursquare API when populating ```raw_info```. This is happening because the actual API request is not on the rhs of the ``||=`` operator.

I've simply updated the ``raw_info`` method to put the API request code on the rhs of the ``||=`` operator so it can be skipped if ``@raw_info`` is already populated.

Not submitting any test cases since no functionality is changed.