{"action":"created","comment":{"url":"https://api.github.com/repos/mavenlink/arboreal/pulls/comments/34214238","id":34214238,"diff_hunk":"@@ -10,6 +10,7 @@ def rebuild_ancestry\n       begin\n         n_changes = extend_materialized_paths\n       end until n_changes.zero?\n+      populate_root_relation if reflect_on_association(:root_ancestor)","path":"lib/arboreal/class_methods.rb","position":4,"original_position":4,"commit_id":"8fb9ccfdcbad83d282f066ee088748288a056ff3","original_commit_id":"2269d1437e40f379ccfc4675a71b5896dc722f88","user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"body":"Okay, as long as both take a symbol.","created_at":"2015-07-09T00:39:45Z","updated_at":"2015-07-09T00:39:45Z","html_url":"https://github.com/mavenlink/arboreal/pull/4#discussion_r34214238","pull_request_url":"https://api.github.com/repos/mavenlink/arboreal/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/mavenlink/arboreal/pulls/comments/34214238"},"html":{"href":"https://github.com/mavenlink/arboreal/pull/4#discussion_r34214238"},"pull_request":{"href":"https://api.github.com/repos/mavenlink/arboreal/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/mavenlink/arboreal/pulls/4","id":39529016,"html_url":"https://github.com/mavenlink/arboreal/pull/4","diff_url":"https://github.com/mavenlink/arboreal/pull/4.diff","patch_url":"https://github.com/mavenlink/arboreal/pull/4.patch","issue_url":"https://api.github.com/repos/mavenlink/arboreal/issues/4","number":4,"state":"open","locked":false,"title":"Add option to enable `root_ancestor` relation","user":{"login":"shirish-pampoorickal","id":3392884,"avatar_url":"https://avatars.githubusercontent.com/u/3392884?v=3","gravatar_id":"","url":"https://api.github.com/users/shirish-pampoorickal","html_url":"https://github.com/shirish-pampoorickal","followers_url":"https://api.github.com/users/shirish-pampoorickal/followers","following_url":"https://api.github.com/users/shirish-pampoorickal/following{/other_user}","gists_url":"https://api.github.com/users/shirish-pampoorickal/gists{/gist_id}","starred_url":"https://api.github.com/users/shirish-pampoorickal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shirish-pampoorickal/subscriptions","organizations_url":"https://api.github.com/users/shirish-pampoorickal/orgs","repos_url":"https://api.github.com/users/shirish-pampoorickal/repos","events_url":"https://api.github.com/users/shirish-pampoorickal/events{/privacy}","received_events_url":"https://api.github.com/users/shirish-pampoorickal/received_events","type":"User","site_admin":false},"body":"@cantino Appreciate a review","created_at":"2015-07-08T22:08:01Z","updated_at":"2015-07-09T00:39:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af5eebf57916ff6e07d759a60281016c329a7ef9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mavenlink/arboreal/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mavenlink/arboreal/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mavenlink/arboreal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mavenlink/arboreal/issues/4/comments","statuses_url":"https://api.github.com/repos/mavenlink/arboreal/statuses/8fb9ccfdcbad83d282f066ee088748288a056ff3","head":{"label":"mavenlink:add_optional_root_relation","ref":"add_optional_root_relation","sha":"8fb9ccfdcbad83d282f066ee088748288a056ff3","user":{"login":"mavenlink","id":52609,"avatar_url":"https://avatars.githubusercontent.com/u/52609?v=3","gravatar_id":"","url":"https://api.github.com/users/mavenlink","html_url":"https://github.com/mavenlink","followers_url":"https://api.github.com/users/mavenlink/followers","following_url":"https://api.github.com/users/mavenlink/following{/other_user}","gists_url":"https://api.github.com/users/mavenlink/gists{/gist_id}","starred_url":"https://api.github.com/users/mavenlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavenlink/subscriptions","organizations_url":"https://api.github.com/users/mavenlink/orgs","repos_url":"https://api.github.com/users/mavenlink/repos","events_url":"https://api.github.com/users/mavenlink/events{/privacy}","received_events_url":"https://api.github.com/users/mavenlink/received_events","type":"Organization","site_admin":false},"repo":{"id":35051117,"name":"arboreal","full_name":"mavenlink/arboreal","owner":{"login":"mavenlink","id":52609,"avatar_url":"https://avatars.githubusercontent.com/u/52609?v=3","gravatar_id":"","url":"https://api.github.com/users/mavenlink","html_url":"https://github.com/mavenlink","followers_url":"https://api.github.com/users/mavenlink/followers","following_url":"https://api.github.com/users/mavenlink/following{/other_user}","gists_url":"https://api.github.com/users/mavenlink/gists{/gist_id}","starred_url":"https://api.github.com/users/mavenlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavenlink/subscriptions","organizations_url":"https://api.github.com/users/mavenlink/orgs","repos_url":"https://api.github.com/users/mavenlink/repos","events_url":"https://api.github.com/users/mavenlink/events{/privacy}","received_events_url":"https://api.github.com/users/mavenlink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mavenlink/arboreal","description":"Efficient tree structures for ActiveRecord","fork":true,"url":"https://api.github.com/repos/mavenlink/arboreal","forks_url":"https://api.github.com/repos/mavenlink/arboreal/forks","keys_url":"https://api.github.com/repos/mavenlink/arboreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mavenlink/arboreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mavenlink/arboreal/teams","hooks_url":"https://api.github.com/repos/mavenlink/arboreal/hooks","issue_events_url":"https://api.github.com/repos/mavenlink/arboreal/issues/events{/number}","events_url":"https://api.github.com/repos/mavenlink/arboreal/events","assignees_url":"https://api.github.com/repos/mavenlink/arboreal/assignees{/user}","branches_url":"https://api.github.com/repos/mavenlink/arboreal/branches{/branch}","tags_url":"https://api.github.com/repos/mavenlink/arboreal/tags","blobs_url":"https://api.github.com/repos/mavenlink/arboreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mavenlink/arboreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mavenlink/arboreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/mavenlink/arboreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mavenlink/arboreal/statuses/{sha}","languages_url":"https://api.github.com/repos/mavenlink/arboreal/languages","stargazers_url":"https://api.github.com/repos/mavenlink/arboreal/stargazers","contributors_url":"https://api.github.com/repos/mavenlink/arboreal/contributors","subscribers_url":"https://api.github.com/repos/mavenlink/arboreal/subscribers","subscription_url":"https://api.github.com/repos/mavenlink/arboreal/subscription","commits_url":"https://api.github.com/repos/mavenlink/arboreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/mavenlink/arboreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/mavenlink/arboreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/mavenlink/arboreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/mavenlink/arboreal/contents/{+path}","compare_url":"https://api.github.com/repos/mavenlink/arboreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mavenlink/arboreal/merges","archive_url":"https://api.github.com/repos/mavenlink/arboreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mavenlink/arboreal/downloads","issues_url":"https://api.github.com/repos/mavenlink/arboreal/issues{/number}","pulls_url":"https://api.github.com/repos/mavenlink/arboreal/pulls{/number}","milestones_url":"https://api.github.com/repos/mavenlink/arboreal/milestones{/number}","notifications_url":"https://api.github.com/repos/mavenlink/arboreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mavenlink/arboreal/labels{/name}","releases_url":"https://api.github.com/repos/mavenlink/arboreal/releases{/id}","created_at":"2015-05-04T18:13:50Z","updated_at":"2015-05-04T18:13:50Z","pushed_at":"2015-07-09T00:16:10Z","git_url":"git://github.com/mavenlink/arboreal.git","ssh_url":"git@github.com:mavenlink/arboreal.git","clone_url":"https://github.com/mavenlink/arboreal.git","svn_url":"https://github.com/mavenlink/arboreal","homepage":"","size":315,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mavenlink:master","ref":"master","sha":"b4dfe894cbf5582ab328bb7d386088944f0693c6","user":{"login":"mavenlink","id":52609,"avatar_url":"https://avatars.githubusercontent.com/u/52609?v=3","gravatar_id":"","url":"https://api.github.com/users/mavenlink","html_url":"https://github.com/mavenlink","followers_url":"https://api.github.com/users/mavenlink/followers","following_url":"https://api.github.com/users/mavenlink/following{/other_user}","gists_url":"https://api.github.com/users/mavenlink/gists{/gist_id}","starred_url":"https://api.github.com/users/mavenlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavenlink/subscriptions","organizations_url":"https://api.github.com/users/mavenlink/orgs","repos_url":"https://api.github.com/users/mavenlink/repos","events_url":"https://api.github.com/users/mavenlink/events{/privacy}","received_events_url":"https://api.github.com/users/mavenlink/received_events","type":"Organization","site_admin":false},"repo":{"id":35051117,"name":"arboreal","full_name":"mavenlink/arboreal","owner":{"login":"mavenlink","id":52609,"avatar_url":"https://avatars.githubusercontent.com/u/52609?v=3","gravatar_id":"","url":"https://api.github.com/users/mavenlink","html_url":"https://github.com/mavenlink","followers_url":"https://api.github.com/users/mavenlink/followers","following_url":"https://api.github.com/users/mavenlink/following{/other_user}","gists_url":"https://api.github.com/users/mavenlink/gists{/gist_id}","starred_url":"https://api.github.com/users/mavenlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavenlink/subscriptions","organizations_url":"https://api.github.com/users/mavenlink/orgs","repos_url":"https://api.github.com/users/mavenlink/repos","events_url":"https://api.github.com/users/mavenlink/events{/privacy}","received_events_url":"https://api.github.com/users/mavenlink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mavenlink/arboreal","description":"Efficient tree structures for ActiveRecord","fork":true,"url":"https://api.github.com/repos/mavenlink/arboreal","forks_url":"https://api.github.com/repos/mavenlink/arboreal/forks","keys_url":"https://api.github.com/repos/mavenlink/arboreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mavenlink/arboreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mavenlink/arboreal/teams","hooks_url":"https://api.github.com/repos/mavenlink/arboreal/hooks","issue_events_url":"https://api.github.com/repos/mavenlink/arboreal/issues/events{/number}","events_url":"https://api.github.com/repos/mavenlink/arboreal/events","assignees_url":"https://api.github.com/repos/mavenlink/arboreal/assignees{/user}","branches_url":"https://api.github.com/repos/mavenlink/arboreal/branches{/branch}","tags_url":"https://api.github.com/repos/mavenlink/arboreal/tags","blobs_url":"https://api.github.com/repos/mavenlink/arboreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mavenlink/arboreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mavenlink/arboreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/mavenlink/arboreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mavenlink/arboreal/statuses/{sha}","languages_url":"https://api.github.com/repos/mavenlink/arboreal/languages","stargazers_url":"https://api.github.com/repos/mavenlink/arboreal/stargazers","contributors_url":"https://api.github.com/repos/mavenlink/arboreal/contributors","subscribers_url":"https://api.github.com/repos/mavenlink/arboreal/subscribers","subscription_url":"https://api.github.com/repos/mavenlink/arboreal/subscription","commits_url":"https://api.github.com/repos/mavenlink/arboreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/mavenlink/arboreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/mavenlink/arboreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/mavenlink/arboreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/mavenlink/arboreal/contents/{+path}","compare_url":"https://api.github.com/repos/mavenlink/arboreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mavenlink/arboreal/merges","archive_url":"https://api.github.com/repos/mavenlink/arboreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mavenlink/arboreal/downloads","issues_url":"https://api.github.com/repos/mavenlink/arboreal/issues{/number}","pulls_url":"https://api.github.com/repos/mavenlink/arboreal/pulls{/number}","milestones_url":"https://api.github.com/repos/mavenlink/arboreal/milestones{/number}","notifications_url":"https://api.github.com/repos/mavenlink/arboreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mavenlink/arboreal/labels{/name}","releases_url":"https://api.github.com/repos/mavenlink/arboreal/releases{/id}","created_at":"2015-05-04T18:13:50Z","updated_at":"2015-05-04T18:13:50Z","pushed_at":"2015-07-09T00:16:10Z","git_url":"git://github.com/mavenlink/arboreal.git","ssh_url":"git@github.com:mavenlink/arboreal.git","clone_url":"https://github.com/mavenlink/arboreal.git","svn_url":"https://github.com/mavenlink/arboreal","homepage":"","size":315,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mavenlink/arboreal/pulls/4"},"html":{"href":"https://github.com/mavenlink/arboreal/pull/4"},"issue":{"href":"https://api.github.com/repos/mavenlink/arboreal/issues/4"},"comments":{"href":"https://api.github.com/repos/mavenlink/arboreal/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mavenlink/arboreal/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mavenlink/arboreal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mavenlink/arboreal/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mavenlink/arboreal/statuses/8fb9ccfdcbad83d282f066ee088748288a056ff3"}}}}