{"action":"created","comment":{"url":"https://api.github.com/repos/irnoble/stormer/pulls/comments/36057678","id":36057678,"diff_hunk":"@@ -7,4 +7,13 @@ class Answer < ActiveRecord::Base\n   validates :body, presence: true\n   validates :body, uniqueness: true\n   validates :question_id, presence: true\n+\n+############ Pass Bounty to selected answer ########################\n+  def transfer_bounty_to_selected_answer\n+    self.bounty_gained = self.question.bounty_points\n+    self.question.bounty_points = 0\n+    self.save\n+    self.question.save","path":"app/models/answer.rb","position":10,"original_position":10,"commit_id":"7cf6a4a0af14f04a6310c1012aae44db47677dae","original_commit_id":"7cf6a4a0af14f04a6310c1012aae44db47677dae","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":"Redundant `self` detected.","created_at":"2015-08-03T05:52:18Z","updated_at":"2015-08-03T05:52:18Z","html_url":"https://github.com/irnoble/stormer/pull/29#discussion_r36057678","pull_request_url":"https://api.github.com/repos/irnoble/stormer/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/comments/36057678"},"html":{"href":"https://github.com/irnoble/stormer/pull/29#discussion_r36057678"},"pull_request":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/irnoble/stormer/pulls/29","id":41436690,"html_url":"https://github.com/irnoble/stormer/pull/29","diff_url":"https://github.com/irnoble/stormer/pull/29.diff","patch_url":"https://github.com/irnoble/stormer/pull/29.patch","issue_url":"https://api.github.com/repos/irnoble/stormer/issues/29","number":29,"state":"open","locked":false,"title":"commit","user":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-03T05:51:24Z","updated_at":"2015-08-03T05:52:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a13da423a752bf77e1e876149c04928acce5fe59","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/irnoble/stormer/pulls/29/commits","review_comments_url":"https://api.github.com/repos/irnoble/stormer/pulls/29/comments","review_comment_url":"https://api.github.com/repos/irnoble/stormer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/irnoble/stormer/issues/29/comments","statuses_url":"https://api.github.com/repos/irnoble/stormer/statuses/7cf6a4a0af14f04a6310c1012aae44db47677dae","head":{"label":"irnoble:more_tests_and_fixes8_2","ref":"more_tests_and_fixes8_2","sha":"7cf6a4a0af14f04a6310c1012aae44db47677dae","user":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"repo":{"id":38941397,"name":"stormer","full_name":"irnoble/stormer","owner":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irnoble/stormer","description":"","fork":false,"url":"https://api.github.com/repos/irnoble/stormer","forks_url":"https://api.github.com/repos/irnoble/stormer/forks","keys_url":"https://api.github.com/repos/irnoble/stormer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irnoble/stormer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irnoble/stormer/teams","hooks_url":"https://api.github.com/repos/irnoble/stormer/hooks","issue_events_url":"https://api.github.com/repos/irnoble/stormer/issues/events{/number}","events_url":"https://api.github.com/repos/irnoble/stormer/events","assignees_url":"https://api.github.com/repos/irnoble/stormer/assignees{/user}","branches_url":"https://api.github.com/repos/irnoble/stormer/branches{/branch}","tags_url":"https://api.github.com/repos/irnoble/stormer/tags","blobs_url":"https://api.github.com/repos/irnoble/stormer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irnoble/stormer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irnoble/stormer/git/refs{/sha}","trees_url":"https://api.github.com/repos/irnoble/stormer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irnoble/stormer/statuses/{sha}","languages_url":"https://api.github.com/repos/irnoble/stormer/languages","stargazers_url":"https://api.github.com/repos/irnoble/stormer/stargazers","contributors_url":"https://api.github.com/repos/irnoble/stormer/contributors","subscribers_url":"https://api.github.com/repos/irnoble/stormer/subscribers","subscription_url":"https://api.github.com/repos/irnoble/stormer/subscription","commits_url":"https://api.github.com/repos/irnoble/stormer/commits{/sha}","git_commits_url":"https://api.github.com/repos/irnoble/stormer/git/commits{/sha}","comments_url":"https://api.github.com/repos/irnoble/stormer/comments{/number}","issue_comment_url":"https://api.github.com/repos/irnoble/stormer/issues/comments{/number}","contents_url":"https://api.github.com/repos/irnoble/stormer/contents/{+path}","compare_url":"https://api.github.com/repos/irnoble/stormer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irnoble/stormer/merges","archive_url":"https://api.github.com/repos/irnoble/stormer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irnoble/stormer/downloads","issues_url":"https://api.github.com/repos/irnoble/stormer/issues{/number}","pulls_url":"https://api.github.com/repos/irnoble/stormer/pulls{/number}","milestones_url":"https://api.github.com/repos/irnoble/stormer/milestones{/number}","notifications_url":"https://api.github.com/repos/irnoble/stormer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irnoble/stormer/labels{/name}","releases_url":"https://api.github.com/repos/irnoble/stormer/releases{/id}","created_at":"2015-07-11T21:42:27Z","updated_at":"2015-07-11T21:43:31Z","pushed_at":"2015-08-03T05:51:24Z","git_url":"git://github.com/irnoble/stormer.git","ssh_url":"git@github.com:irnoble/stormer.git","clone_url":"https://github.com/irnoble/stormer.git","svn_url":"https://github.com/irnoble/stormer","homepage":null,"size":1308,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"irnoble:master","ref":"master","sha":"4285636f88424475db7d3dc5e25645622f1cc2dc","user":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"repo":{"id":38941397,"name":"stormer","full_name":"irnoble/stormer","owner":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irnoble/stormer","description":"","fork":false,"url":"https://api.github.com/repos/irnoble/stormer","forks_url":"https://api.github.com/repos/irnoble/stormer/forks","keys_url":"https://api.github.com/repos/irnoble/stormer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irnoble/stormer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irnoble/stormer/teams","hooks_url":"https://api.github.com/repos/irnoble/stormer/hooks","issue_events_url":"https://api.github.com/repos/irnoble/stormer/issues/events{/number}","events_url":"https://api.github.com/repos/irnoble/stormer/events","assignees_url":"https://api.github.com/repos/irnoble/stormer/assignees{/user}","branches_url":"https://api.github.com/repos/irnoble/stormer/branches{/branch}","tags_url":"https://api.github.com/repos/irnoble/stormer/tags","blobs_url":"https://api.github.com/repos/irnoble/stormer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irnoble/stormer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irnoble/stormer/git/refs{/sha}","trees_url":"https://api.github.com/repos/irnoble/stormer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irnoble/stormer/statuses/{sha}","languages_url":"https://api.github.com/repos/irnoble/stormer/languages","stargazers_url":"https://api.github.com/repos/irnoble/stormer/stargazers","contributors_url":"https://api.github.com/repos/irnoble/stormer/contributors","subscribers_url":"https://api.github.com/repos/irnoble/stormer/subscribers","subscription_url":"https://api.github.com/repos/irnoble/stormer/subscription","commits_url":"https://api.github.com/repos/irnoble/stormer/commits{/sha}","git_commits_url":"https://api.github.com/repos/irnoble/stormer/git/commits{/sha}","comments_url":"https://api.github.com/repos/irnoble/stormer/comments{/number}","issue_comment_url":"https://api.github.com/repos/irnoble/stormer/issues/comments{/number}","contents_url":"https://api.github.com/repos/irnoble/stormer/contents/{+path}","compare_url":"https://api.github.com/repos/irnoble/stormer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irnoble/stormer/merges","archive_url":"https://api.github.com/repos/irnoble/stormer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irnoble/stormer/downloads","issues_url":"https://api.github.com/repos/irnoble/stormer/issues{/number}","pulls_url":"https://api.github.com/repos/irnoble/stormer/pulls{/number}","milestones_url":"https://api.github.com/repos/irnoble/stormer/milestones{/number}","notifications_url":"https://api.github.com/repos/irnoble/stormer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irnoble/stormer/labels{/name}","releases_url":"https://api.github.com/repos/irnoble/stormer/releases{/id}","created_at":"2015-07-11T21:42:27Z","updated_at":"2015-07-11T21:43:31Z","pushed_at":"2015-08-03T05:51:24Z","git_url":"git://github.com/irnoble/stormer.git","ssh_url":"git@github.com:irnoble/stormer.git","clone_url":"https://github.com/irnoble/stormer.git","svn_url":"https://github.com/irnoble/stormer","homepage":null,"size":1308,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/29"},"html":{"href":"https://github.com/irnoble/stormer/pull/29"},"issue":{"href":"https://api.github.com/repos/irnoble/stormer/issues/29"},"comments":{"href":"https://api.github.com/repos/irnoble/stormer/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/irnoble/stormer/statuses/7cf6a4a0af14f04a6310c1012aae44db47677dae"}}}}