{"action":"opened","number":365,"pull_request":{"url":"https://api.github.com/repos/ctran/annotate_models/pulls/365","id":67392347,"html_url":"https://github.com/ctran/annotate_models/pull/365","diff_url":"https://github.com/ctran/annotate_models/pull/365.diff","patch_url":"https://github.com/ctran/annotate_models/pull/365.patch","issue_url":"https://api.github.com/repos/ctran/annotate_models/issues/365","number":365,"state":"open","locked":false,"title":"add option to exclude STI subclasses from annotation","user":{"login":"ethnext","id":6799137,"avatar_url":"https://avatars.githubusercontent.com/u/6799137?v=3","gravatar_id":"","url":"https://api.github.com/users/ethnext","html_url":"https://github.com/ethnext","followers_url":"https://api.github.com/users/ethnext/followers","following_url":"https://api.github.com/users/ethnext/following{/other_user}","gists_url":"https://api.github.com/users/ethnext/gists{/gist_id}","starred_url":"https://api.github.com/users/ethnext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethnext/subscriptions","organizations_url":"https://api.github.com/users/ethnext/orgs","repos_url":"https://api.github.com/users/ethnext/repos","events_url":"https://api.github.com/users/ethnext/events{/privacy}","received_events_url":"https://api.github.com/users/ethnext/received_events","type":"User","site_admin":false},"body":"I've added an option named `exclude_sti_subclasses` and code which checks if a model has a superclass under AR::B with the same table in order to exclude STI subclasses from annotation. \r\n\r\nthis is a need I have on a project with a large number of subclasses of certain models, where annotating every one generates a lot of noise on any schema change, so I prefer to just annotate the parent class. ","created_at":"2016-04-21T17:29:08Z","updated_at":"2016-04-21T17:29:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ctran/annotate_models/pulls/365/commits","review_comments_url":"https://api.github.com/repos/ctran/annotate_models/pulls/365/comments","review_comment_url":"https://api.github.com/repos/ctran/annotate_models/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ctran/annotate_models/issues/365/comments","statuses_url":"https://api.github.com/repos/ctran/annotate_models/statuses/fea8f6a8e5804e55c8799802da205835f017f621","head":{"label":"venuenext:d_exclude_sti_subclasses","ref":"d_exclude_sti_subclasses","sha":"fea8f6a8e5804e55c8799802da205835f017f621","user":{"login":"venuenext","id":6866758,"avatar_url":"https://avatars.githubusercontent.com/u/6866758?v=3","gravatar_id":"","url":"https://api.github.com/users/venuenext","html_url":"https://github.com/venuenext","followers_url":"https://api.github.com/users/venuenext/followers","following_url":"https://api.github.com/users/venuenext/following{/other_user}","gists_url":"https://api.github.com/users/venuenext/gists{/gist_id}","starred_url":"https://api.github.com/users/venuenext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venuenext/subscriptions","organizations_url":"https://api.github.com/users/venuenext/orgs","repos_url":"https://api.github.com/users/venuenext/repos","events_url":"https://api.github.com/users/venuenext/events{/privacy}","received_events_url":"https://api.github.com/users/venuenext/received_events","type":"Organization","site_admin":false},"repo":{"id":56792386,"name":"annotate_models","full_name":"venuenext/annotate_models","owner":{"login":"venuenext","id":6866758,"avatar_url":"https://avatars.githubusercontent.com/u/6866758?v=3","gravatar_id":"","url":"https://api.github.com/users/venuenext","html_url":"https://github.com/venuenext","followers_url":"https://api.github.com/users/venuenext/followers","following_url":"https://api.github.com/users/venuenext/following{/other_user}","gists_url":"https://api.github.com/users/venuenext/gists{/gist_id}","starred_url":"https://api.github.com/users/venuenext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venuenext/subscriptions","organizations_url":"https://api.github.com/users/venuenext/orgs","repos_url":"https://api.github.com/users/venuenext/repos","events_url":"https://api.github.com/users/venuenext/events{/privacy}","received_events_url":"https://api.github.com/users/venuenext/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/venuenext/annotate_models","description":"Annotate Rails classes with schema and routes info","fork":true,"url":"https://api.github.com/repos/venuenext/annotate_models","forks_url":"https://api.github.com/repos/venuenext/annotate_models/forks","keys_url":"https://api.github.com/repos/venuenext/annotate_models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/venuenext/annotate_models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/venuenext/annotate_models/teams","hooks_url":"https://api.github.com/repos/venuenext/annotate_models/hooks","issue_events_url":"https://api.github.com/repos/venuenext/annotate_models/issues/events{/number}","events_url":"https://api.github.com/repos/venuenext/annotate_models/events","assignees_url":"https://api.github.com/repos/venuenext/annotate_models/assignees{/user}","branches_url":"https://api.github.com/repos/venuenext/annotate_models/branches{/branch}","tags_url":"https://api.github.com/repos/venuenext/annotate_models/tags","blobs_url":"https://api.github.com/repos/venuenext/annotate_models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/venuenext/annotate_models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/venuenext/annotate_models/git/refs{/sha}","trees_url":"https://api.github.com/repos/venuenext/annotate_models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/venuenext/annotate_models/statuses/{sha}","languages_url":"https://api.github.com/repos/venuenext/annotate_models/languages","stargazers_url":"https://api.github.com/repos/venuenext/annotate_models/stargazers","contributors_url":"https://api.github.com/repos/venuenext/annotate_models/contributors","subscribers_url":"https://api.github.com/repos/venuenext/annotate_models/subscribers","subscription_url":"https://api.github.com/repos/venuenext/annotate_models/subscription","commits_url":"https://api.github.com/repos/venuenext/annotate_models/commits{/sha}","git_commits_url":"https://api.github.com/repos/venuenext/annotate_models/git/commits{/sha}","comments_url":"https://api.github.com/repos/venuenext/annotate_models/comments{/number}","issue_comment_url":"https://api.github.com/repos/venuenext/annotate_models/issues/comments{/number}","contents_url":"https://api.github.com/repos/venuenext/annotate_models/contents/{+path}","compare_url":"https://api.github.com/repos/venuenext/annotate_models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/venuenext/annotate_models/merges","archive_url":"https://api.github.com/repos/venuenext/annotate_models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/venuenext/annotate_models/downloads","issues_url":"https://api.github.com/repos/venuenext/annotate_models/issues{/number}","pulls_url":"https://api.github.com/repos/venuenext/annotate_models/pulls{/number}","milestones_url":"https://api.github.com/repos/venuenext/annotate_models/milestones{/number}","notifications_url":"https://api.github.com/repos/venuenext/annotate_models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/venuenext/annotate_models/labels{/name}","releases_url":"https://api.github.com/repos/venuenext/annotate_models/releases{/id}","deployments_url":"https://api.github.com/repos/venuenext/annotate_models/deployments","created_at":"2016-04-21T17:15:56Z","updated_at":"2016-04-21T17:15:57Z","pushed_at":"2016-04-21T17:26:38Z","git_url":"git://github.com/venuenext/annotate_models.git","ssh_url":"git@github.com:venuenext/annotate_models.git","clone_url":"https://github.com/venuenext/annotate_models.git","svn_url":"https://github.com/venuenext/annotate_models","homepage":"","size":1058,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ctran:develop","ref":"develop","sha":"f1fa3510878745cb57a1cb0435abccc56d169b75","user":{"login":"ctran","id":491,"avatar_url":"https://avatars.githubusercontent.com/u/491?v=3","gravatar_id":"","url":"https://api.github.com/users/ctran","html_url":"https://github.com/ctran","followers_url":"https://api.github.com/users/ctran/followers","following_url":"https://api.github.com/users/ctran/following{/other_user}","gists_url":"https://api.github.com/users/ctran/gists{/gist_id}","starred_url":"https://api.github.com/users/ctran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctran/subscriptions","organizations_url":"https://api.github.com/users/ctran/orgs","repos_url":"https://api.github.com/users/ctran/repos","events_url":"https://api.github.com/users/ctran/events{/privacy}","received_events_url":"https://api.github.com/users/ctran/received_events","type":"User","site_admin":false},"repo":{"id":1462,"name":"annotate_models","full_name":"ctran/annotate_models","owner":{"login":"ctran","id":491,"avatar_url":"https://avatars.githubusercontent.com/u/491?v=3","gravatar_id":"","url":"https://api.github.com/users/ctran","html_url":"https://github.com/ctran","followers_url":"https://api.github.com/users/ctran/followers","following_url":"https://api.github.com/users/ctran/following{/other_user}","gists_url":"https://api.github.com/users/ctran/gists{/gist_id}","starred_url":"https://api.github.com/users/ctran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctran/subscriptions","organizations_url":"https://api.github.com/users/ctran/orgs","repos_url":"https://api.github.com/users/ctran/repos","events_url":"https://api.github.com/users/ctran/events{/privacy}","received_events_url":"https://api.github.com/users/ctran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ctran/annotate_models","description":"Annotate Rails classes with schema and routes info","fork":false,"url":"https://api.github.com/repos/ctran/annotate_models","forks_url":"https://api.github.com/repos/ctran/annotate_models/forks","keys_url":"https://api.github.com/repos/ctran/annotate_models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctran/annotate_models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctran/annotate_models/teams","hooks_url":"https://api.github.com/repos/ctran/annotate_models/hooks","issue_events_url":"https://api.github.com/repos/ctran/annotate_models/issues/events{/number}","events_url":"https://api.github.com/repos/ctran/annotate_models/events","assignees_url":"https://api.github.com/repos/ctran/annotate_models/assignees{/user}","branches_url":"https://api.github.com/repos/ctran/annotate_models/branches{/branch}","tags_url":"https://api.github.com/repos/ctran/annotate_models/tags","blobs_url":"https://api.github.com/repos/ctran/annotate_models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctran/annotate_models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctran/annotate_models/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctran/annotate_models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctran/annotate_models/statuses/{sha}","languages_url":"https://api.github.com/repos/ctran/annotate_models/languages","stargazers_url":"https://api.github.com/repos/ctran/annotate_models/stargazers","contributors_url":"https://api.github.com/repos/ctran/annotate_models/contributors","subscribers_url":"https://api.github.com/repos/ctran/annotate_models/subscribers","subscription_url":"https://api.github.com/repos/ctran/annotate_models/subscription","commits_url":"https://api.github.com/repos/ctran/annotate_models/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctran/annotate_models/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctran/annotate_models/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctran/annotate_models/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctran/annotate_models/contents/{+path}","compare_url":"https://api.github.com/repos/ctran/annotate_models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctran/annotate_models/merges","archive_url":"https://api.github.com/repos/ctran/annotate_models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctran/annotate_models/downloads","issues_url":"https://api.github.com/repos/ctran/annotate_models/issues{/number}","pulls_url":"https://api.github.com/repos/ctran/annotate_models/pulls{/number}","milestones_url":"https://api.github.com/repos/ctran/annotate_models/milestones{/number}","notifications_url":"https://api.github.com/repos/ctran/annotate_models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctran/annotate_models/labels{/name}","releases_url":"https://api.github.com/repos/ctran/annotate_models/releases{/id}","deployments_url":"https://api.github.com/repos/ctran/annotate_models/deployments","created_at":"2008-02-27T18:04:38Z","updated_at":"2016-04-20T09:17:32Z","pushed_at":"2016-04-13T16:31:53Z","git_url":"git://github.com/ctran/annotate_models.git","ssh_url":"git@github.com:ctran/annotate_models.git","clone_url":"https://github.com/ctran/annotate_models.git","svn_url":"https://github.com/ctran/annotate_models","homepage":"","size":1527,"stargazers_count":2095,"watchers_count":2095,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":282,"mirror_url":null,"open_issues_count":35,"forks":282,"open_issues":35,"watchers":2095,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ctran/annotate_models/pulls/365"},"html":{"href":"https://github.com/ctran/annotate_models/pull/365"},"issue":{"href":"https://api.github.com/repos/ctran/annotate_models/issues/365"},"comments":{"href":"https://api.github.com/repos/ctran/annotate_models/issues/365/comments"},"review_comments":{"href":"https://api.github.com/repos/ctran/annotate_models/pulls/365/comments"},"review_comment":{"href":"https://api.github.com/repos/ctran/annotate_models/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ctran/annotate_models/pulls/365/commits"},"statuses":{"href":"https://api.github.com/repos/ctran/annotate_models/statuses/fea8f6a8e5804e55c8799802da205835f017f621"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":2,"changed_files":4}}