Skip to content

Commit

Permalink
Merge pull request #233 from mark-rushakoff/example-fix
Browse files Browse the repository at this point in the history
Fix example for update_authorization
  • Loading branch information
sferik committed Apr 7, 2013
2 parents d61cba1 + 98fdd90 commit cb9b838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/client/authorizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create_authorization(options={})
# @see http://developer.github.com/v3/oauth/#scopes for available scopes
# @example Update the authorization for user ctshryock's project Zoidberg
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
# client.create_authorization({:add_scopes => ["gist", "repo"], :note => "Why not Zoidberg possibly?"})
# client.update_authorization(999999, {:add_scopes => ["gist", "repo"], :note => "Why not Zoidberg possibly?"})
def update_authorization(number, options={})
# Techincally we can omit scopes as GitHub has a default, however the
# API will reject us if we send a POST request with an empty body.
Expand Down

0 comments on commit cb9b838

Please sign in to comment.