{"action":"created","comment":{"url":"https://api.github.com/repos/stefankroes/ancestry/pulls/comments/52268056","id":52268056,"diff_hunk":"@@ -31,7 +36,7 @@ def has_ancestry options = {}\n     self.touch_ancestors = options[:touch] || false\n \n     # Validate format of ancestry column value\n-    validates_format_of ancestry_column, :with => Ancestry::ANCESTRY_PATTERN, :allow_nil => true\n+    validates_format_of ancestry_column, :with => ancestry_pattern, :allow_nil => true","path":"lib/ancestry/has_ancestry.rb","position":41,"original_position":41,"commit_id":"55d12ec8121309bd9c1ab8622f5792a9965dfd32","original_commit_id":"55d12ec8121309bd9c1ab8622f5792a9965dfd32","user":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"body":"So if the pattern is changed after the model is loaded, it will pick it up?\r\n","created_at":"2016-02-09T05:03:13Z","updated_at":"2016-02-09T05:03:13Z","html_url":"https://github.com/stefankroes/ancestry/pull/262#discussion_r52268056","pull_request_url":"https://api.github.com/repos/stefankroes/ancestry/pulls/262","_links":{"self":{"href":"https://api.github.com/repos/stefankroes/ancestry/pulls/comments/52268056"},"html":{"href":"https://github.com/stefankroes/ancestry/pull/262#discussion_r52268056"},"pull_request":{"href":"https://api.github.com/repos/stefankroes/ancestry/pulls/262"}}},"pull_request":{"url":"https://api.github.com/repos/stefankroes/ancestry/pulls/262","id":58530122,"html_url":"https://github.com/stefankroes/ancestry/pull/262","diff_url":"https://github.com/stefankroes/ancestry/pull/262.diff","patch_url":"https://github.com/stefankroes/ancestry/pull/262.patch","issue_url":"https://api.github.com/repos/stefankroes/ancestry/issues/262","number":262,"state":"open","locked":false,"title":"set the ancestry column delimiter and id pattern","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"body":"This is based upon #132 by @sholden \r\n\r\nIt had some conflicts, so I brought up to date.\r\n\r\n1. set the `:ancestry_delimiter`\r\n2. set the `:ancestry_id_pattern`\r\n\r\n","created_at":"2016-02-06T20:56:17Z","updated_at":"2016-02-09T05:03:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64ed0e2f9dd0f40e3aa88e8988848891f5110300","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stefankroes/ancestry/pulls/262/commits","review_comments_url":"https://api.github.com/repos/stefankroes/ancestry/pulls/262/comments","review_comment_url":"https://api.github.com/repos/stefankroes/ancestry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stefankroes/ancestry/issues/262/comments","statuses_url":"https://api.github.com/repos/stefankroes/ancestry/statuses/55d12ec8121309bd9c1ab8622f5792a9965dfd32","head":{"label":"kbrock:delimiter","ref":"delimiter","sha":"55d12ec8121309bd9c1ab8622f5792a9965dfd32","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"repo":{"id":47302328,"name":"ancestry","full_name":"kbrock/ancestry","owner":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbrock/ancestry","description":"Organise ActiveRecord model into a tree structure","fork":true,"url":"https://api.github.com/repos/kbrock/ancestry","forks_url":"https://api.github.com/repos/kbrock/ancestry/forks","keys_url":"https://api.github.com/repos/kbrock/ancestry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbrock/ancestry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbrock/ancestry/teams","hooks_url":"https://api.github.com/repos/kbrock/ancestry/hooks","issue_events_url":"https://api.github.com/repos/kbrock/ancestry/issues/events{/number}","events_url":"https://api.github.com/repos/kbrock/ancestry/events","assignees_url":"https://api.github.com/repos/kbrock/ancestry/assignees{/user}","branches_url":"https://api.github.com/repos/kbrock/ancestry/branches{/branch}","tags_url":"https://api.github.com/repos/kbrock/ancestry/tags","blobs_url":"https://api.github.com/repos/kbrock/ancestry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbrock/ancestry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbrock/ancestry/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbrock/ancestry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbrock/ancestry/statuses/{sha}","languages_url":"https://api.github.com/repos/kbrock/ancestry/languages","stargazers_url":"https://api.github.com/repos/kbrock/ancestry/stargazers","contributors_url":"https://api.github.com/repos/kbrock/ancestry/contributors","subscribers_url":"https://api.github.com/repos/kbrock/ancestry/subscribers","subscription_url":"https://api.github.com/repos/kbrock/ancestry/subscription","commits_url":"https://api.github.com/repos/kbrock/ancestry/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbrock/ancestry/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbrock/ancestry/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbrock/ancestry/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbrock/ancestry/contents/{+path}","compare_url":"https://api.github.com/repos/kbrock/ancestry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbrock/ancestry/merges","archive_url":"https://api.github.com/repos/kbrock/ancestry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbrock/ancestry/downloads","issues_url":"https://api.github.com/repos/kbrock/ancestry/issues{/number}","pulls_url":"https://api.github.com/repos/kbrock/ancestry/pulls{/number}","milestones_url":"https://api.github.com/repos/kbrock/ancestry/milestones{/number}","notifications_url":"https://api.github.com/repos/kbrock/ancestry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbrock/ancestry/labels{/name}","releases_url":"https://api.github.com/repos/kbrock/ancestry/releases{/id}","deployments_url":"https://api.github.com/repos/kbrock/ancestry/deployments","created_at":"2015-12-03T02:35:53Z","updated_at":"2016-02-08T13:53:44Z","pushed_at":"2016-02-08T16:53:29Z","git_url":"git://github.com/kbrock/ancestry.git","ssh_url":"git@github.com:kbrock/ancestry.git","clone_url":"https://github.com/kbrock/ancestry.git","svn_url":"https://github.com/kbrock/ancestry","homepage":"","size":8685,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stefankroes:master","ref":"master","sha":"d99e2a41095cbd743e244134f69ca9e28f4234f3","user":{"login":"stefankroes","id":37841,"avatar_url":"https://avatars.githubusercontent.com/u/37841?v=3","gravatar_id":"","url":"https://api.github.com/users/stefankroes","html_url":"https://github.com/stefankroes","followers_url":"https://api.github.com/users/stefankroes/followers","following_url":"https://api.github.com/users/stefankroes/following{/other_user}","gists_url":"https://api.github.com/users/stefankroes/gists{/gist_id}","starred_url":"https://api.github.com/users/stefankroes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefankroes/subscriptions","organizations_url":"https://api.github.com/users/stefankroes/orgs","repos_url":"https://api.github.com/users/stefankroes/repos","events_url":"https://api.github.com/users/stefankroes/events{/privacy}","received_events_url":"https://api.github.com/users/stefankroes/received_events","type":"User","site_admin":false},"repo":{"id":339567,"name":"ancestry","full_name":"stefankroes/ancestry","owner":{"login":"stefankroes","id":37841,"avatar_url":"https://avatars.githubusercontent.com/u/37841?v=3","gravatar_id":"","url":"https://api.github.com/users/stefankroes","html_url":"https://github.com/stefankroes","followers_url":"https://api.github.com/users/stefankroes/followers","following_url":"https://api.github.com/users/stefankroes/following{/other_user}","gists_url":"https://api.github.com/users/stefankroes/gists{/gist_id}","starred_url":"https://api.github.com/users/stefankroes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefankroes/subscriptions","organizations_url":"https://api.github.com/users/stefankroes/orgs","repos_url":"https://api.github.com/users/stefankroes/repos","events_url":"https://api.github.com/users/stefankroes/events{/privacy}","received_events_url":"https://api.github.com/users/stefankroes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stefankroes/ancestry","description":"Organise ActiveRecord model into a tree structure","fork":false,"url":"https://api.github.com/repos/stefankroes/ancestry","forks_url":"https://api.github.com/repos/stefankroes/ancestry/forks","keys_url":"https://api.github.com/repos/stefankroes/ancestry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stefankroes/ancestry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stefankroes/ancestry/teams","hooks_url":"https://api.github.com/repos/stefankroes/ancestry/hooks","issue_events_url":"https://api.github.com/repos/stefankroes/ancestry/issues/events{/number}","events_url":"https://api.github.com/repos/stefankroes/ancestry/events","assignees_url":"https://api.github.com/repos/stefankroes/ancestry/assignees{/user}","branches_url":"https://api.github.com/repos/stefankroes/ancestry/branches{/branch}","tags_url":"https://api.github.com/repos/stefankroes/ancestry/tags","blobs_url":"https://api.github.com/repos/stefankroes/ancestry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stefankroes/ancestry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stefankroes/ancestry/git/refs{/sha}","trees_url":"https://api.github.com/repos/stefankroes/ancestry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stefankroes/ancestry/statuses/{sha}","languages_url":"https://api.github.com/repos/stefankroes/ancestry/languages","stargazers_url":"https://api.github.com/repos/stefankroes/ancestry/stargazers","contributors_url":"https://api.github.com/repos/stefankroes/ancestry/contributors","subscribers_url":"https://api.github.com/repos/stefankroes/ancestry/subscribers","subscription_url":"https://api.github.com/repos/stefankroes/ancestry/subscription","commits_url":"https://api.github.com/repos/stefankroes/ancestry/commits{/sha}","git_commits_url":"https://api.github.com/repos/stefankroes/ancestry/git/commits{/sha}","comments_url":"https://api.github.com/repos/stefankroes/ancestry/comments{/number}","issue_comment_url":"https://api.github.com/repos/stefankroes/ancestry/issues/comments{/number}","contents_url":"https://api.github.com/repos/stefankroes/ancestry/contents/{+path}","compare_url":"https://api.github.com/repos/stefankroes/ancestry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stefankroes/ancestry/merges","archive_url":"https://api.github.com/repos/stefankroes/ancestry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stefankroes/ancestry/downloads","issues_url":"https://api.github.com/repos/stefankroes/ancestry/issues{/number}","pulls_url":"https://api.github.com/repos/stefankroes/ancestry/pulls{/number}","milestones_url":"https://api.github.com/repos/stefankroes/ancestry/milestones{/number}","notifications_url":"https://api.github.com/repos/stefankroes/ancestry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stefankroes/ancestry/labels{/name}","releases_url":"https://api.github.com/repos/stefankroes/ancestry/releases{/id}","deployments_url":"https://api.github.com/repos/stefankroes/ancestry/deployments","created_at":"2009-10-16T13:37:09Z","updated_at":"2016-02-09T02:03:12Z","pushed_at":"2016-02-09T05:00:14Z","git_url":"git://github.com/stefankroes/ancestry.git","ssh_url":"git@github.com:stefankroes/ancestry.git","clone_url":"https://github.com/stefankroes/ancestry.git","svn_url":"https://github.com/stefankroes/ancestry","homepage":"","size":8846,"stargazers_count":2072,"watchers_count":2072,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":292,"mirror_url":null,"open_issues_count":90,"forks":292,"open_issues":90,"watchers":2072,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stefankroes/ancestry/pulls/262"},"html":{"href":"https://github.com/stefankroes/ancestry/pull/262"},"issue":{"href":"https://api.github.com/repos/stefankroes/ancestry/issues/262"},"comments":{"href":"https://api.github.com/repos/stefankroes/ancestry/issues/262/comments"},"review_comments":{"href":"https://api.github.com/repos/stefankroes/ancestry/pulls/262/comments"},"review_comment":{"href":"https://api.github.com/repos/stefankroes/ancestry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stefankroes/ancestry/pulls/262/commits"},"statuses":{"href":"https://api.github.com/repos/stefankroes/ancestry/statuses/55d12ec8121309bd9c1ab8622f5792a9965dfd32"}}}}