{"action":"created","comment":{"url":"https://api.github.com/repos/cocolote/jamradio/pulls/comments/36039267","id":36039267,"diff_hunk":"@@ -23,9 +23,10 @@ def create\n \n   def destroy\n     @user_song = UserSong.find_by(user: current_user, song_id: params[:id])\n-    UserSong.destroy_all(user: current_user, song_id: params[:id])\n+    UserSong.delete(@user_song)\n+    song = Song.find(params[:id])\n     respond_to do |format|\n-      format.json { render json: { id: params[:id], message: \"The song was deleted\" } }\n+      format.json { render json: { sc_song_id: song.sc_song_id, message: \"The song was deleted\" } }","path":"app/controllers/songs_controller.rb","position":9,"original_position":9,"commit_id":"a4eabfdc68a71d71d4ffb906d484a7515cff9cf7","original_commit_id":"a4eabfdc68a71d71d4ffb906d484a7515cff9cf7","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [99/80]","created_at":"2015-08-02T03:53:10Z","updated_at":"2015-08-02T03:53:10Z","html_url":"https://github.com/cocolote/jamradio/pull/9#discussion_r36039267","pull_request_url":"https://api.github.com/repos/cocolote/jamradio/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/cocolote/jamradio/pulls/comments/36039267"},"html":{"href":"https://github.com/cocolote/jamradio/pull/9#discussion_r36039267"},"pull_request":{"href":"https://api.github.com/repos/cocolote/jamradio/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/cocolote/jamradio/pulls/9","id":41411938,"html_url":"https://github.com/cocolote/jamradio/pull/9","diff_url":"https://github.com/cocolote/jamradio/pull/9.diff","patch_url":"https://github.com/cocolote/jamradio/pull/9.patch","issue_url":"https://api.github.com/repos/cocolote/jamradio/issues/9","number":9,"state":"closed","locked":false,"title":"New style","user":{"login":"cocolote","id":4121133,"avatar_url":"https://avatars.githubusercontent.com/u/4121133?v=3","gravatar_id":"","url":"https://api.github.com/users/cocolote","html_url":"https://github.com/cocolote","followers_url":"https://api.github.com/users/cocolote/followers","following_url":"https://api.github.com/users/cocolote/following{/other_user}","gists_url":"https://api.github.com/users/cocolote/gists{/gist_id}","starred_url":"https://api.github.com/users/cocolote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocolote/subscriptions","organizations_url":"https://api.github.com/users/cocolote/orgs","repos_url":"https://api.github.com/users/cocolote/repos","events_url":"https://api.github.com/users/cocolote/events{/privacy}","received_events_url":"https://api.github.com/users/cocolote/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-02T03:52:08Z","updated_at":"2015-08-02T03:53:12Z","closed_at":"2015-08-02T03:52:18Z","merged_at":"2015-08-02T03:52:18Z","merge_commit_sha":"fbbae44bfb65482fa5c1296ef8432c2b3a8f1cb8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cocolote/jamradio/pulls/9/commits","review_comments_url":"https://api.github.com/repos/cocolote/jamradio/pulls/9/comments","review_comment_url":"https://api.github.com/repos/cocolote/jamradio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocolote/jamradio/issues/9/comments","statuses_url":"https://api.github.com/repos/cocolote/jamradio/statuses/a4eabfdc68a71d71d4ffb906d484a7515cff9cf7","head":{"label":"cocolote:new-style","ref":"new-style","sha":"a4eabfdc68a71d71d4ffb906d484a7515cff9cf7","user":{"login":"cocolote","id":4121133,"avatar_url":"https://avatars.githubusercontent.com/u/4121133?v=3","gravatar_id":"","url":"https://api.github.com/users/cocolote","html_url":"https://github.com/cocolote","followers_url":"https://api.github.com/users/cocolote/followers","following_url":"https://api.github.com/users/cocolote/following{/other_user}","gists_url":"https://api.github.com/users/cocolote/gists{/gist_id}","starred_url":"https://api.github.com/users/cocolote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocolote/subscriptions","organizations_url":"https://api.github.com/users/cocolote/orgs","repos_url":"https://api.github.com/users/cocolote/repos","events_url":"https://api.github.com/users/cocolote/events{/privacy}","received_events_url":"https://api.github.com/users/cocolote/received_events","type":"User","site_admin":false},"repo":{"id":33887099,"name":"jamradio","full_name":"cocolote/jamradio","owner":{"login":"cocolote","id":4121133,"avatar_url":"https://avatars.githubusercontent.com/u/4121133?v=3","gravatar_id":"","url":"https://api.github.com/users/cocolote","html_url":"https://github.com/cocolote","followers_url":"https://api.github.com/users/cocolote/followers","following_url":"https://api.github.com/users/cocolote/following{/other_user}","gists_url":"https://api.github.com/users/cocolote/gists{/gist_id}","starred_url":"https://api.github.com/users/cocolote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocolote/subscriptions","organizations_url":"https://api.github.com/users/cocolote/orgs","repos_url":"https://api.github.com/users/cocolote/repos","events_url":"https://api.github.com/users/cocolote/events{/privacy}","received_events_url":"https://api.github.com/users/cocolote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cocolote/jamradio","description":"Jam Radio share music with your friends","fork":false,"url":"https://api.github.com/repos/cocolote/jamradio","forks_url":"https://api.github.com/repos/cocolote/jamradio/forks","keys_url":"https://api.github.com/repos/cocolote/jamradio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocolote/jamradio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocolote/jamradio/teams","hooks_url":"https://api.github.com/repos/cocolote/jamradio/hooks","issue_events_url":"https://api.github.com/repos/cocolote/jamradio/issues/events{/number}","events_url":"https://api.github.com/repos/cocolote/jamradio/events","assignees_url":"https://api.github.com/repos/cocolote/jamradio/assignees{/user}","branches_url":"https://api.github.com/repos/cocolote/jamradio/branches{/branch}","tags_url":"https://api.github.com/repos/cocolote/jamradio/tags","blobs_url":"https://api.github.com/repos/cocolote/jamradio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocolote/jamradio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocolote/jamradio/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocolote/jamradio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocolote/jamradio/statuses/{sha}","languages_url":"https://api.github.com/repos/cocolote/jamradio/languages","stargazers_url":"https://api.github.com/repos/cocolote/jamradio/stargazers","contributors_url":"https://api.github.com/repos/cocolote/jamradio/contributors","subscribers_url":"https://api.github.com/repos/cocolote/jamradio/subscribers","subscription_url":"https://api.github.com/repos/cocolote/jamradio/subscription","commits_url":"https://api.github.com/repos/cocolote/jamradio/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocolote/jamradio/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocolote/jamradio/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocolote/jamradio/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocolote/jamradio/contents/{+path}","compare_url":"https://api.github.com/repos/cocolote/jamradio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocolote/jamradio/merges","archive_url":"https://api.github.com/repos/cocolote/jamradio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocolote/jamradio/downloads","issues_url":"https://api.github.com/repos/cocolote/jamradio/issues{/number}","pulls_url":"https://api.github.com/repos/cocolote/jamradio/pulls{/number}","milestones_url":"https://api.github.com/repos/cocolote/jamradio/milestones{/number}","notifications_url":"https://api.github.com/repos/cocolote/jamradio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocolote/jamradio/labels{/name}","releases_url":"https://api.github.com/repos/cocolote/jamradio/releases{/id}","created_at":"2015-04-13T18:48:28Z","updated_at":"2015-04-26T21:38:40Z","pushed_at":"2015-08-02T03:52:18Z","git_url":"git://github.com/cocolote/jamradio.git","ssh_url":"git@github.com:cocolote/jamradio.git","clone_url":"https://github.com/cocolote/jamradio.git","svn_url":"https://github.com/cocolote/jamradio","homepage":null,"size":5840,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"cocolote:master","ref":"master","sha":"a4ce970fb6b606fde542ef386957c87034c66e97","user":{"login":"cocolote","id":4121133,"avatar_url":"https://avatars.githubusercontent.com/u/4121133?v=3","gravatar_id":"","url":"https://api.github.com/users/cocolote","html_url":"https://github.com/cocolote","followers_url":"https://api.github.com/users/cocolote/followers","following_url":"https://api.github.com/users/cocolote/following{/other_user}","gists_url":"https://api.github.com/users/cocolote/gists{/gist_id}","starred_url":"https://api.github.com/users/cocolote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocolote/subscriptions","organizations_url":"https://api.github.com/users/cocolote/orgs","repos_url":"https://api.github.com/users/cocolote/repos","events_url":"https://api.github.com/users/cocolote/events{/privacy}","received_events_url":"https://api.github.com/users/cocolote/received_events","type":"User","site_admin":false},"repo":{"id":33887099,"name":"jamradio","full_name":"cocolote/jamradio","owner":{"login":"cocolote","id":4121133,"avatar_url":"https://avatars.githubusercontent.com/u/4121133?v=3","gravatar_id":"","url":"https://api.github.com/users/cocolote","html_url":"https://github.com/cocolote","followers_url":"https://api.github.com/users/cocolote/followers","following_url":"https://api.github.com/users/cocolote/following{/other_user}","gists_url":"https://api.github.com/users/cocolote/gists{/gist_id}","starred_url":"https://api.github.com/users/cocolote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocolote/subscriptions","organizations_url":"https://api.github.com/users/cocolote/orgs","repos_url":"https://api.github.com/users/cocolote/repos","events_url":"https://api.github.com/users/cocolote/events{/privacy}","received_events_url":"https://api.github.com/users/cocolote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cocolote/jamradio","description":"Jam Radio share music with your friends","fork":false,"url":"https://api.github.com/repos/cocolote/jamradio","forks_url":"https://api.github.com/repos/cocolote/jamradio/forks","keys_url":"https://api.github.com/repos/cocolote/jamradio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocolote/jamradio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocolote/jamradio/teams","hooks_url":"https://api.github.com/repos/cocolote/jamradio/hooks","issue_events_url":"https://api.github.com/repos/cocolote/jamradio/issues/events{/number}","events_url":"https://api.github.com/repos/cocolote/jamradio/events","assignees_url":"https://api.github.com/repos/cocolote/jamradio/assignees{/user}","branches_url":"https://api.github.com/repos/cocolote/jamradio/branches{/branch}","tags_url":"https://api.github.com/repos/cocolote/jamradio/tags","blobs_url":"https://api.github.com/repos/cocolote/jamradio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocolote/jamradio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocolote/jamradio/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocolote/jamradio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocolote/jamradio/statuses/{sha}","languages_url":"https://api.github.com/repos/cocolote/jamradio/languages","stargazers_url":"https://api.github.com/repos/cocolote/jamradio/stargazers","contributors_url":"https://api.github.com/repos/cocolote/jamradio/contributors","subscribers_url":"https://api.github.com/repos/cocolote/jamradio/subscribers","subscription_url":"https://api.github.com/repos/cocolote/jamradio/subscription","commits_url":"https://api.github.com/repos/cocolote/jamradio/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocolote/jamradio/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocolote/jamradio/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocolote/jamradio/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocolote/jamradio/contents/{+path}","compare_url":"https://api.github.com/repos/cocolote/jamradio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocolote/jamradio/merges","archive_url":"https://api.github.com/repos/cocolote/jamradio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocolote/jamradio/downloads","issues_url":"https://api.github.com/repos/cocolote/jamradio/issues{/number}","pulls_url":"https://api.github.com/repos/cocolote/jamradio/pulls{/number}","milestones_url":"https://api.github.com/repos/cocolote/jamradio/milestones{/number}","notifications_url":"https://api.github.com/repos/cocolote/jamradio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocolote/jamradio/labels{/name}","releases_url":"https://api.github.com/repos/cocolote/jamradio/releases{/id}","created_at":"2015-04-13T18:48:28Z","updated_at":"2015-04-26T21:38:40Z","pushed_at":"2015-08-02T03:52:18Z","git_url":"git://github.com/cocolote/jamradio.git","ssh_url":"git@github.com:cocolote/jamradio.git","clone_url":"https://github.com/cocolote/jamradio.git","svn_url":"https://github.com/cocolote/jamradio","homepage":null,"size":5840,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/cocolote/jamradio/pulls/9"},"html":{"href":"https://github.com/cocolote/jamradio/pull/9"},"issue":{"href":"https://api.github.com/repos/cocolote/jamradio/issues/9"},"comments":{"href":"https://api.github.com/repos/cocolote/jamradio/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/cocolote/jamradio/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/cocolote/jamradio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocolote/jamradio/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/cocolote/jamradio/statuses/a4eabfdc68a71d71d4ffb906d484a7515cff9cf7"}}}}