{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/17","id":53539049,"html_url":"https://github.com/weapons-of-mass-deduction/chess-app/pull/17","diff_url":"https://github.com/weapons-of-mass-deduction/chess-app/pull/17.diff","patch_url":"https://github.com/weapons-of-mass-deduction/chess-app/pull/17.patch","issue_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/17","number":17,"state":"closed","locked":false,"title":"Retrieve piece method","user":{"login":"AUcod3r","id":14982050,"avatar_url":"https://avatars.githubusercontent.com/u/14982050?v=3","gravatar_id":"","url":"https://api.github.com/users/AUcod3r","html_url":"https://github.com/AUcod3r","followers_url":"https://api.github.com/users/AUcod3r/followers","following_url":"https://api.github.com/users/AUcod3r/following{/other_user}","gists_url":"https://api.github.com/users/AUcod3r/gists{/gist_id}","starred_url":"https://api.github.com/users/AUcod3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AUcod3r/subscriptions","organizations_url":"https://api.github.com/users/AUcod3r/orgs","repos_url":"https://api.github.com/users/AUcod3r/repos","events_url":"https://api.github.com/users/AUcod3r/events{/privacy}","received_events_url":"https://api.github.com/users/AUcod3r/received_events","type":"User","site_admin":false},"body":"Added the retrieve_piece method to the game model.  Also modified the games controller update action and commented out some of the games.js code.  I tried to look at the ajax data being passed to the games_controller#update action and use that data as provided.  This code is NOT efficient... Within the method, I assign @pieces = Piece.all.  There has to be a better way, but I couldn't figure it out as of this commit with the current state of the overarching code.  I'm sure we'll need to refactor at some point but the method works and retrieves the correct piece.","created_at":"2015-12-14T09:06:36Z","updated_at":"2015-12-14T19:06:06Z","closed_at":"2015-12-14T19:06:06Z","merged_at":"2015-12-14T19:06:06Z","merge_commit_sha":"e0c6d2c4fe01003227dc00be81b98a3218fad1d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/17/commits","review_comments_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/17/comments","review_comment_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/17/comments","statuses_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/statuses/5b6d0fdd89c59868d0f16e59df6ea167774da13a","head":{"label":"weapons-of-mass-deduction:retrieve-piece","ref":"retrieve-piece","sha":"5b6d0fdd89c59868d0f16e59df6ea167774da13a","user":{"login":"weapons-of-mass-deduction","id":15993560,"avatar_url":"https://avatars.githubusercontent.com/u/15993560?v=3","gravatar_id":"","url":"https://api.github.com/users/weapons-of-mass-deduction","html_url":"https://github.com/weapons-of-mass-deduction","followers_url":"https://api.github.com/users/weapons-of-mass-deduction/followers","following_url":"https://api.github.com/users/weapons-of-mass-deduction/following{/other_user}","gists_url":"https://api.github.com/users/weapons-of-mass-deduction/gists{/gist_id}","starred_url":"https://api.github.com/users/weapons-of-mass-deduction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weapons-of-mass-deduction/subscriptions","organizations_url":"https://api.github.com/users/weapons-of-mass-deduction/orgs","repos_url":"https://api.github.com/users/weapons-of-mass-deduction/repos","events_url":"https://api.github.com/users/weapons-of-mass-deduction/events{/privacy}","received_events_url":"https://api.github.com/users/weapons-of-mass-deduction/received_events","type":"Organization","site_admin":false},"repo":{"id":46823774,"name":"chess-app","full_name":"weapons-of-mass-deduction/chess-app","owner":{"login":"weapons-of-mass-deduction","id":15993560,"avatar_url":"https://avatars.githubusercontent.com/u/15993560?v=3","gravatar_id":"","url":"https://api.github.com/users/weapons-of-mass-deduction","html_url":"https://github.com/weapons-of-mass-deduction","followers_url":"https://api.github.com/users/weapons-of-mass-deduction/followers","following_url":"https://api.github.com/users/weapons-of-mass-deduction/following{/other_user}","gists_url":"https://api.github.com/users/weapons-of-mass-deduction/gists{/gist_id}","starred_url":"https://api.github.com/users/weapons-of-mass-deduction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weapons-of-mass-deduction/subscriptions","organizations_url":"https://api.github.com/users/weapons-of-mass-deduction/orgs","repos_url":"https://api.github.com/users/weapons-of-mass-deduction/repos","events_url":"https://api.github.com/users/weapons-of-mass-deduction/events{/privacy}","received_events_url":"https://api.github.com/users/weapons-of-mass-deduction/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weapons-of-mass-deduction/chess-app","description":"","fork":false,"url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app","forks_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/forks","keys_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/teams","hooks_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/hooks","issue_events_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/events{/number}","events_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/events","assignees_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/assignees{/user}","branches_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/branches{/branch}","tags_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/tags","blobs_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/statuses/{sha}","languages_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/languages","stargazers_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/stargazers","contributors_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/contributors","subscribers_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/subscribers","subscription_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/subscription","commits_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/contents/{+path}","compare_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/merges","archive_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/downloads","issues_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues{/number}","pulls_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls{/number}","milestones_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/milestones{/number}","notifications_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/labels{/name}","releases_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/releases{/id}","created_at":"2015-11-24T22:53:23Z","updated_at":"2015-11-24T23:04:05Z","pushed_at":"2015-12-14T19:06:06Z","git_url":"git://github.com/weapons-of-mass-deduction/chess-app.git","ssh_url":"git@github.com:weapons-of-mass-deduction/chess-app.git","clone_url":"https://github.com/weapons-of-mass-deduction/chess-app.git","svn_url":"https://github.com/weapons-of-mass-deduction/chess-app","homepage":null,"size":1745,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"master"}},"base":{"label":"weapons-of-mass-deduction:master","ref":"master","sha":"eeea31577d51706d9cf02bafb5ea6a429706a8bc","user":{"login":"weapons-of-mass-deduction","id":15993560,"avatar_url":"https://avatars.githubusercontent.com/u/15993560?v=3","gravatar_id":"","url":"https://api.github.com/users/weapons-of-mass-deduction","html_url":"https://github.com/weapons-of-mass-deduction","followers_url":"https://api.github.com/users/weapons-of-mass-deduction/followers","following_url":"https://api.github.com/users/weapons-of-mass-deduction/following{/other_user}","gists_url":"https://api.github.com/users/weapons-of-mass-deduction/gists{/gist_id}","starred_url":"https://api.github.com/users/weapons-of-mass-deduction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weapons-of-mass-deduction/subscriptions","organizations_url":"https://api.github.com/users/weapons-of-mass-deduction/orgs","repos_url":"https://api.github.com/users/weapons-of-mass-deduction/repos","events_url":"https://api.github.com/users/weapons-of-mass-deduction/events{/privacy}","received_events_url":"https://api.github.com/users/weapons-of-mass-deduction/received_events","type":"Organization","site_admin":false},"repo":{"id":46823774,"name":"chess-app","full_name":"weapons-of-mass-deduction/chess-app","owner":{"login":"weapons-of-mass-deduction","id":15993560,"avatar_url":"https://avatars.githubusercontent.com/u/15993560?v=3","gravatar_id":"","url":"https://api.github.com/users/weapons-of-mass-deduction","html_url":"https://github.com/weapons-of-mass-deduction","followers_url":"https://api.github.com/users/weapons-of-mass-deduction/followers","following_url":"https://api.github.com/users/weapons-of-mass-deduction/following{/other_user}","gists_url":"https://api.github.com/users/weapons-of-mass-deduction/gists{/gist_id}","starred_url":"https://api.github.com/users/weapons-of-mass-deduction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weapons-of-mass-deduction/subscriptions","organizations_url":"https://api.github.com/users/weapons-of-mass-deduction/orgs","repos_url":"https://api.github.com/users/weapons-of-mass-deduction/repos","events_url":"https://api.github.com/users/weapons-of-mass-deduction/events{/privacy}","received_events_url":"https://api.github.com/users/weapons-of-mass-deduction/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weapons-of-mass-deduction/chess-app","description":"","fork":false,"url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app","forks_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/forks","keys_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/teams","hooks_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/hooks","issue_events_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/events{/number}","events_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/events","assignees_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/assignees{/user}","branches_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/branches{/branch}","tags_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/tags","blobs_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/statuses/{sha}","languages_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/languages","stargazers_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/stargazers","contributors_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/contributors","subscribers_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/subscribers","subscription_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/subscription","commits_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/contents/{+path}","compare_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/merges","archive_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/downloads","issues_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues{/number}","pulls_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls{/number}","milestones_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/milestones{/number}","notifications_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/labels{/name}","releases_url":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/releases{/id}","created_at":"2015-11-24T22:53:23Z","updated_at":"2015-11-24T23:04:05Z","pushed_at":"2015-12-14T19:06:06Z","git_url":"git://github.com/weapons-of-mass-deduction/chess-app.git","ssh_url":"git@github.com:weapons-of-mass-deduction/chess-app.git","clone_url":"https://github.com/weapons-of-mass-deduction/chess-app.git","svn_url":"https://github.com/weapons-of-mass-deduction/chess-app","homepage":null,"size":1745,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/17"},"html":{"href":"https://github.com/weapons-of-mass-deduction/chess-app/pull/17"},"issue":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/17"},"comments":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/weapons-of-mass-deduction/chess-app/statuses/5b6d0fdd89c59868d0f16e59df6ea167774da13a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"joehenriod","id":13243426,"avatar_url":"https://avatars.githubusercontent.com/u/13243426?v=3","gravatar_id":"","url":"https://api.github.com/users/joehenriod","html_url":"https://github.com/joehenriod","followers_url":"https://api.github.com/users/joehenriod/followers","following_url":"https://api.github.com/users/joehenriod/following{/other_user}","gists_url":"https://api.github.com/users/joehenriod/gists{/gist_id}","starred_url":"https://api.github.com/users/joehenriod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehenriod/subscriptions","organizations_url":"https://api.github.com/users/joehenriod/orgs","repos_url":"https://api.github.com/users/joehenriod/repos","events_url":"https://api.github.com/users/joehenriod/events{/privacy}","received_events_url":"https://api.github.com/users/joehenriod/received_events","type":"User","site_admin":false},"comments":6,"review_comments":2,"commits":4,"additions":64,"deletions":48,"changed_files":4}}