{"action":"opened","number":729,"pull_request":{"url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/729","id":31378914,"html_url":"https://github.com/projecthydra/active_fedora/pull/729","diff_url":"https://github.com/projecthydra/active_fedora/pull/729.diff","patch_url":"https://github.com/projecthydra/active_fedora/pull/729.patch","issue_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/729","number":729,"state":"open","locked":false,"title":"Allow a has_many association to specify an explicit foreign key via the :as option","user":{"login":"mbklein","id":196872,"avatar_url":"https://avatars.githubusercontent.com/u/196872?v=3","gravatar_id":"","url":"https://api.github.com/users/mbklein","html_url":"https://github.com/mbklein","followers_url":"https://api.github.com/users/mbklein/followers","following_url":"https://api.github.com/users/mbklein/following{/other_user}","gists_url":"https://api.github.com/users/mbklein/gists{/gist_id}","starred_url":"https://api.github.com/users/mbklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbklein/subscriptions","organizations_url":"https://api.github.com/users/mbklein/orgs","repos_url":"https://api.github.com/users/mbklein/repos","events_url":"https://api.github.com/users/mbklein/events{/privacy}","received_events_url":"https://api.github.com/users/mbklein/received_events","type":"User","site_admin":false},"body":"Fixes the bug demonstrated in [this gist](https://gist.github.com/mbklein/88d07b3fe6ad97ee5f1d), which I never got around to filing an issue about because I fixed it instead.","created_at":"2015-03-17T21:16:33Z","updated_at":"2015-03-17T21:16:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/729/commits","review_comments_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/729/comments","review_comment_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/729/comments","statuses_url":"https://api.github.com/repos/projecthydra/active_fedora/statuses/c7b6551935980172e8b9ae33fbc22adef3a2d023","head":{"label":"mbklein:add-as-to-hm-reflection","ref":"add-as-to-hm-reflection","sha":"c7b6551935980172e8b9ae33fbc22adef3a2d023","user":{"login":"mbklein","id":196872,"avatar_url":"https://avatars.githubusercontent.com/u/196872?v=3","gravatar_id":"","url":"https://api.github.com/users/mbklein","html_url":"https://github.com/mbklein","followers_url":"https://api.github.com/users/mbklein/followers","following_url":"https://api.github.com/users/mbklein/following{/other_user}","gists_url":"https://api.github.com/users/mbklein/gists{/gist_id}","starred_url":"https://api.github.com/users/mbklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbklein/subscriptions","organizations_url":"https://api.github.com/users/mbklein/orgs","repos_url":"https://api.github.com/users/mbklein/repos","events_url":"https://api.github.com/users/mbklein/events{/privacy}","received_events_url":"https://api.github.com/users/mbklein/received_events","type":"User","site_admin":false},"repo":{"id":2793261,"name":"active_fedora","full_name":"mbklein/active_fedora","owner":{"login":"mbklein","id":196872,"avatar_url":"https://avatars.githubusercontent.com/u/196872?v=3","gravatar_id":"","url":"https://api.github.com/users/mbklein","html_url":"https://github.com/mbklein","followers_url":"https://api.github.com/users/mbklein/followers","following_url":"https://api.github.com/users/mbklein/following{/other_user}","gists_url":"https://api.github.com/users/mbklein/gists{/gist_id}","starred_url":"https://api.github.com/users/mbklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbklein/subscriptions","organizations_url":"https://api.github.com/users/mbklein/orgs","repos_url":"https://api.github.com/users/mbklein/repos","events_url":"https://api.github.com/users/mbklein/events{/privacy}","received_events_url":"https://api.github.com/users/mbklein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbklein/active_fedora","description":"TODO: one-line summary of your gem","fork":true,"url":"https://api.github.com/repos/mbklein/active_fedora","forks_url":"https://api.github.com/repos/mbklein/active_fedora/forks","keys_url":"https://api.github.com/repos/mbklein/active_fedora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbklein/active_fedora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbklein/active_fedora/teams","hooks_url":"https://api.github.com/repos/mbklein/active_fedora/hooks","issue_events_url":"https://api.github.com/repos/mbklein/active_fedora/issues/events{/number}","events_url":"https://api.github.com/repos/mbklein/active_fedora/events","assignees_url":"https://api.github.com/repos/mbklein/active_fedora/assignees{/user}","branches_url":"https://api.github.com/repos/mbklein/active_fedora/branches{/branch}","tags_url":"https://api.github.com/repos/mbklein/active_fedora/tags","blobs_url":"https://api.github.com/repos/mbklein/active_fedora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbklein/active_fedora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbklein/active_fedora/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbklein/active_fedora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbklein/active_fedora/statuses/{sha}","languages_url":"https://api.github.com/repos/mbklein/active_fedora/languages","stargazers_url":"https://api.github.com/repos/mbklein/active_fedora/stargazers","contributors_url":"https://api.github.com/repos/mbklein/active_fedora/contributors","subscribers_url":"https://api.github.com/repos/mbklein/active_fedora/subscribers","subscription_url":"https://api.github.com/repos/mbklein/active_fedora/subscription","commits_url":"https://api.github.com/repos/mbklein/active_fedora/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbklein/active_fedora/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbklein/active_fedora/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbklein/active_fedora/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbklein/active_fedora/contents/{+path}","compare_url":"https://api.github.com/repos/mbklein/active_fedora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbklein/active_fedora/merges","archive_url":"https://api.github.com/repos/mbklein/active_fedora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbklein/active_fedora/downloads","issues_url":"https://api.github.com/repos/mbklein/active_fedora/issues{/number}","pulls_url":"https://api.github.com/repos/mbklein/active_fedora/pulls{/number}","milestones_url":"https://api.github.com/repos/mbklein/active_fedora/milestones{/number}","notifications_url":"https://api.github.com/repos/mbklein/active_fedora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbklein/active_fedora/labels{/name}","releases_url":"https://api.github.com/repos/mbklein/active_fedora/releases{/id}","created_at":"2011-11-17T04:40:25Z","updated_at":"2015-03-17T21:14:37Z","pushed_at":"2015-03-17T21:14:36Z","git_url":"git://github.com/mbklein/active_fedora.git","ssh_url":"git@github.com:mbklein/active_fedora.git","clone_url":"https://github.com/mbklein/active_fedora.git","svn_url":"https://github.com/mbklein/active_fedora","homepage":null,"size":6116,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"projecthydra:master","ref":"master","sha":"c136799196c392645385c6fd7eaabe24bd1d210b","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":3867127,"name":"active_fedora","full_name":"projecthydra/active_fedora","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/active_fedora","description":"A Rails interface to the Fedora repository, akin to Active Model","fork":false,"url":"https://api.github.com/repos/projecthydra/active_fedora","forks_url":"https://api.github.com/repos/projecthydra/active_fedora/forks","keys_url":"https://api.github.com/repos/projecthydra/active_fedora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/active_fedora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/active_fedora/teams","hooks_url":"https://api.github.com/repos/projecthydra/active_fedora/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/active_fedora/events","assignees_url":"https://api.github.com/repos/projecthydra/active_fedora/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/active_fedora/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/active_fedora/tags","blobs_url":"https://api.github.com/repos/projecthydra/active_fedora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/active_fedora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/active_fedora/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/active_fedora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/active_fedora/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/active_fedora/languages","stargazers_url":"https://api.github.com/repos/projecthydra/active_fedora/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/active_fedora/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/active_fedora/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/active_fedora/subscription","commits_url":"https://api.github.com/repos/projecthydra/active_fedora/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/active_fedora/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/active_fedora/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra/active_fedora/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/active_fedora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/active_fedora/merges","archive_url":"https://api.github.com/repos/projecthydra/active_fedora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/active_fedora/downloads","issues_url":"https://api.github.com/repos/projecthydra/active_fedora/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/active_fedora/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/active_fedora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/active_fedora/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/active_fedora/releases{/id}","created_at":"2012-03-29T15:01:13Z","updated_at":"2015-03-11T13:42:36Z","pushed_at":"2015-03-13T17:55:19Z","git_url":"git://github.com/projecthydra/active_fedora.git","ssh_url":"git@github.com:projecthydra/active_fedora.git","clone_url":"https://github.com/projecthydra/active_fedora.git","svn_url":"https://github.com/projecthydra/active_fedora","homepage":"","size":14175,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":43,"forks":44,"open_issues":43,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/729"},"html":{"href":"https://github.com/projecthydra/active_fedora/pull/729"},"issue":{"href":"https://api.github.com/repos/projecthydra/active_fedora/issues/729"},"comments":{"href":"https://api.github.com/repos/projecthydra/active_fedora/issues/729/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/729/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/729/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra/active_fedora/statuses/c7b6551935980172e8b9ae33fbc22adef3a2d023"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":1,"changed_files":2}}