Skip to content

Commit

Permalink
Pass options to Twitter::Client#verify_credentials from Twitter::Clie…
Browse files Browse the repository at this point in the history
…nt#user
  • Loading branch information
sferik committed Jun 28, 2012
1 parent 1592328 commit 8d99cfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/twitter/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def rate_limit_status(options={})
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Twitter::User] The authenticated user.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :skip_status Do not include user's statuses when set to true, 't' or 1.
# @example Return the requesting user if authentication was successful
# Twitter.verify_credentials
def verify_credentials(options={})
Expand Down Expand Up @@ -2652,7 +2653,7 @@ def user(*args)
response = get("/1/users/show.json", options)
Twitter::User.from_response(response)
else
self.verify_credentials
self.verify_credentials(options)
end
end

Expand Down

0 comments on commit 8d99cfd

Please sign in to comment.