Merge pull request #4 from steeve/patch-1

Only put option when there is a value. (Causes errors with Netflix API).
This commit is contained in:
Erik Michaels-Ober 2012-07-19 08:42:11 -07:00
commit 27ce779af0

View file

@ -72,7 +72,7 @@ module SimpleOAuth
end
def attributes
ATTRIBUTE_KEYS.inject({}){|a,k| options.key?(k) ? a.merge(:"oauth_#{k}" => options[k]) : a }
ATTRIBUTE_KEYS.inject({}){|a,k| options[k] ? a.merge(:"oauth_#{k}" => options[k]) : a }
end
def signature