pelle / oauth-plugin

Rails plugin for OAuth
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
MIT License
716 stars 216 forks source link

If options is nil, pass an empty hash instead so OAuth::Consumer won't choke. #80

Closed marnen closed 13 years ago

marnen commented 13 years ago

If credentials[:options] is nil, then OAuth::Consumer gets passed a nil object when it expects a Hash. This causes ugly errors (tried to perform nil.inject, that sort of thing). I've added a nil guard here.