Skip to content
Browse files

Pass options to Twitter::Client#verify_credentials from Twitter::Clie…

…nt#user
  • Loading branch information...
1 parent 1592328 commit 8d99cfdbc7614690769c1682664cbe8cd9ea9c93 @sferik committed Jun 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/twitter/client.rb
View
3 lib/twitter/client.rb
@@ -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={})
@@ -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

0 comments on commit 8d99cfd

Please sign in to comment.
Something went wrong with that request. Please try again.