Skip to content

Commit

Permalink
minor client.consumer change
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Feb 5, 2011
1 parent b786c40 commit 0a212d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/linked_in/client.rb
Expand Up @@ -19,7 +19,10 @@ def initialize(ctoken=LinkedIn.token, csecret=LinkedIn.secret, options={})
end

def consumer
@consumer ||= ::OAuth::Consumer.new(@ctoken, @csecret, {:site => 'https://api.linkedin.com'}.merge(@consumer_options))
@consumer ||= begin
options = { :site => 'https://api.linkedin.com' }.merge(@consumer_options)
::OAuth::Consumer.new(@ctoken, @csecret, options)
end
end

def set_callback_url(url)
Expand Down

0 comments on commit 0a212d2

Please sign in to comment.