Skip to content

Commit

Permalink
Move auto pagination into the configure block
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Frederick committed Sep 22, 2014
1 parent 52ea63c commit 0b95f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/ruby/enterprise/list_all_ssh_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
Octokit.configure do |kit|
kit.api_endpoint = "#{hostname}/api/v3"
kit.access_token = access_token
kit.auto_paginate = true
end

Octokit.auto_paginate = true

begin
users = Octokit.all_users
rescue
Expand Down

0 comments on commit 0b95f6b

Please sign in to comment.