Permalink
Browse files

use self instead of @connection.repos when creating a new Repo from w…

…ithin ReposAPI
  • Loading branch information...
1 parent 768142e commit 00311245f43dad0d3ec941b432f429a8acc1e134 John Ledbetter committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/github_v3_api/repos_api.rb
@@ -73,7 +73,7 @@ def list_watchers(user, repo_name)
# +repo_name+:: the string ID of the repository, e.g. "hello-world"
def list_forks(user, repo_name)
@connection.get("/repos/#{user}/#{repo_name}/forks").map do |repo_data|
- GitHubV3API::Repo.new(@connection.repos, repo_data)
+ GitHubV3API::Repo.new(self, repo_data)
end
end

0 comments on commit 0031124

Please sign in to comment.