{"action":"created","comment":{"url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/comments/31125642","id":31125642,"diff_hunk":"@@ -124,4 +125,9 @@ def invoice_params\n         line_item_ids: [],\n         line_items_attributes: [:item_id, :line_total, :price, :quantity, '_destroy', :id, :description])\n   end\n+\n+  def is_client_exists?","path":"app/controllers/invoices_controller.rb","position":19,"original_position":19,"commit_id":"7936b6efa3701f9bf1f228627788d0e2debc3401","original_commit_id":"7936b6efa3701f9bf1f228627788d0e2debc3401","user":{"login":"AmitPatel-BoTreeConsulting","id":1289894,"avatar_url":"https://avatars.githubusercontent.com/u/1289894?v=3","gravatar_id":"","url":"https://api.github.com/users/AmitPatel-BoTreeConsulting","html_url":"https://github.com/AmitPatel-BoTreeConsulting","followers_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/followers","following_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/following{/other_user}","gists_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/subscriptions","organizations_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/orgs","repos_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/repos","events_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/events{/privacy}","received_events_url":"https://api.github.com/users/AmitPatel-BoTreeConsulting/received_events","type":"User","site_admin":false},"body":"rename to `require_client!`. `!` is used because you are changing the state of request ie. redirect ","created_at":"2015-05-27T11:57:12Z","updated_at":"2015-05-27T11:57:12Z","html_url":"https://github.com/BoTreeConsultingTeam/invoiceme/pull/63#discussion_r31125642","pull_request_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/comments/31125642"},"html":{"href":"https://github.com/BoTreeConsultingTeam/invoiceme/pull/63#discussion_r31125642"},"pull_request":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63","id":36293737,"html_url":"https://github.com/BoTreeConsultingTeam/invoiceme/pull/63","diff_url":"https://github.com/BoTreeConsultingTeam/invoiceme/pull/63.diff","patch_url":"https://github.com/BoTreeConsultingTeam/invoiceme/pull/63.patch","issue_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/63","number":63,"state":"open","locked":false,"title":"#58 - Bug On Heroku:  undefine method \"address\" for NilClass","user":{"login":"ParthivPatel-BTC","id":5477412,"avatar_url":"https://avatars.githubusercontent.com/u/5477412?v=3","gravatar_id":"","url":"https://api.github.com/users/ParthivPatel-BTC","html_url":"https://github.com/ParthivPatel-BTC","followers_url":"https://api.github.com/users/ParthivPatel-BTC/followers","following_url":"https://api.github.com/users/ParthivPatel-BTC/following{/other_user}","gists_url":"https://api.github.com/users/ParthivPatel-BTC/gists{/gist_id}","starred_url":"https://api.github.com/users/ParthivPatel-BTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParthivPatel-BTC/subscriptions","organizations_url":"https://api.github.com/users/ParthivPatel-BTC/orgs","repos_url":"https://api.github.com/users/ParthivPatel-BTC/repos","events_url":"https://api.github.com/users/ParthivPatel-BTC/events{/privacy}","received_events_url":"https://api.github.com/users/ParthivPatel-BTC/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-27T11:29:03Z","updated_at":"2015-05-27T11:57:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ed93c7606b711a294d62081f278a6265bca8c49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63/commits","review_comments_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63/comments","review_comment_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/63/comments","statuses_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/statuses/7936b6efa3701f9bf1f228627788d0e2debc3401","head":{"label":"BoTreeConsultingTeam:pp-dev-bug58","ref":"pp-dev-bug58","sha":"7936b6efa3701f9bf1f228627788d0e2debc3401","user":{"login":"BoTreeConsultingTeam","id":3539381,"avatar_url":"https://avatars.githubusercontent.com/u/3539381?v=3","gravatar_id":"","url":"https://api.github.com/users/BoTreeConsultingTeam","html_url":"https://github.com/BoTreeConsultingTeam","followers_url":"https://api.github.com/users/BoTreeConsultingTeam/followers","following_url":"https://api.github.com/users/BoTreeConsultingTeam/following{/other_user}","gists_url":"https://api.github.com/users/BoTreeConsultingTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/BoTreeConsultingTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoTreeConsultingTeam/subscriptions","organizations_url":"https://api.github.com/users/BoTreeConsultingTeam/orgs","repos_url":"https://api.github.com/users/BoTreeConsultingTeam/repos","events_url":"https://api.github.com/users/BoTreeConsultingTeam/events{/privacy}","received_events_url":"https://api.github.com/users/BoTreeConsultingTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":30966477,"name":"invoiceme","full_name":"BoTreeConsultingTeam/invoiceme","owner":{"login":"BoTreeConsultingTeam","id":3539381,"avatar_url":"https://avatars.githubusercontent.com/u/3539381?v=3","gravatar_id":"","url":"https://api.github.com/users/BoTreeConsultingTeam","html_url":"https://github.com/BoTreeConsultingTeam","followers_url":"https://api.github.com/users/BoTreeConsultingTeam/followers","following_url":"https://api.github.com/users/BoTreeConsultingTeam/following{/other_user}","gists_url":"https://api.github.com/users/BoTreeConsultingTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/BoTreeConsultingTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoTreeConsultingTeam/subscriptions","organizations_url":"https://api.github.com/users/BoTreeConsultingTeam/orgs","repos_url":"https://api.github.com/users/BoTreeConsultingTeam/repos","events_url":"https://api.github.com/users/BoTreeConsultingTeam/events{/privacy}","received_events_url":"https://api.github.com/users/BoTreeConsultingTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BoTreeConsultingTeam/invoiceme","description":"Invoice management","fork":false,"url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme","forks_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/forks","keys_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/teams","hooks_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/hooks","issue_events_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/events{/number}","events_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/events","assignees_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/assignees{/user}","branches_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/branches{/branch}","tags_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/tags","blobs_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/statuses/{sha}","languages_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/languages","stargazers_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/stargazers","contributors_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/contributors","subscribers_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/subscribers","subscription_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/subscription","commits_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/contents/{+path}","compare_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/merges","archive_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/downloads","issues_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues{/number}","pulls_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls{/number}","milestones_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/milestones{/number}","notifications_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/labels{/name}","releases_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/releases{/id}","created_at":"2015-02-18T13:25:29Z","updated_at":"2015-05-05T13:51:14Z","pushed_at":"2015-05-27T11:49:51Z","git_url":"git://github.com/BoTreeConsultingTeam/invoiceme.git","ssh_url":"git@github.com:BoTreeConsultingTeam/invoiceme.git","clone_url":"https://github.com/BoTreeConsultingTeam/invoiceme.git","svn_url":"https://github.com/BoTreeConsultingTeam/invoiceme","homepage":null,"size":1420,"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":46,"forks":0,"open_issues":46,"watchers":0,"default_branch":"master"}},"base":{"label":"BoTreeConsultingTeam:development","ref":"development","sha":"559385c87863432a504d55f88e19b4aed77c8fc6","user":{"login":"BoTreeConsultingTeam","id":3539381,"avatar_url":"https://avatars.githubusercontent.com/u/3539381?v=3","gravatar_id":"","url":"https://api.github.com/users/BoTreeConsultingTeam","html_url":"https://github.com/BoTreeConsultingTeam","followers_url":"https://api.github.com/users/BoTreeConsultingTeam/followers","following_url":"https://api.github.com/users/BoTreeConsultingTeam/following{/other_user}","gists_url":"https://api.github.com/users/BoTreeConsultingTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/BoTreeConsultingTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoTreeConsultingTeam/subscriptions","organizations_url":"https://api.github.com/users/BoTreeConsultingTeam/orgs","repos_url":"https://api.github.com/users/BoTreeConsultingTeam/repos","events_url":"https://api.github.com/users/BoTreeConsultingTeam/events{/privacy}","received_events_url":"https://api.github.com/users/BoTreeConsultingTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":30966477,"name":"invoiceme","full_name":"BoTreeConsultingTeam/invoiceme","owner":{"login":"BoTreeConsultingTeam","id":3539381,"avatar_url":"https://avatars.githubusercontent.com/u/3539381?v=3","gravatar_id":"","url":"https://api.github.com/users/BoTreeConsultingTeam","html_url":"https://github.com/BoTreeConsultingTeam","followers_url":"https://api.github.com/users/BoTreeConsultingTeam/followers","following_url":"https://api.github.com/users/BoTreeConsultingTeam/following{/other_user}","gists_url":"https://api.github.com/users/BoTreeConsultingTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/BoTreeConsultingTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoTreeConsultingTeam/subscriptions","organizations_url":"https://api.github.com/users/BoTreeConsultingTeam/orgs","repos_url":"https://api.github.com/users/BoTreeConsultingTeam/repos","events_url":"https://api.github.com/users/BoTreeConsultingTeam/events{/privacy}","received_events_url":"https://api.github.com/users/BoTreeConsultingTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BoTreeConsultingTeam/invoiceme","description":"Invoice management","fork":false,"url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme","forks_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/forks","keys_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/teams","hooks_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/hooks","issue_events_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/events{/number}","events_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/events","assignees_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/assignees{/user}","branches_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/branches{/branch}","tags_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/tags","blobs_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/statuses/{sha}","languages_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/languages","stargazers_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/stargazers","contributors_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/contributors","subscribers_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/subscribers","subscription_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/subscription","commits_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/contents/{+path}","compare_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/merges","archive_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/downloads","issues_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues{/number}","pulls_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls{/number}","milestones_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/milestones{/number}","notifications_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/labels{/name}","releases_url":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/releases{/id}","created_at":"2015-02-18T13:25:29Z","updated_at":"2015-05-05T13:51:14Z","pushed_at":"2015-05-27T11:49:51Z","git_url":"git://github.com/BoTreeConsultingTeam/invoiceme.git","ssh_url":"git@github.com:BoTreeConsultingTeam/invoiceme.git","clone_url":"https://github.com/BoTreeConsultingTeam/invoiceme.git","svn_url":"https://github.com/BoTreeConsultingTeam/invoiceme","homepage":null,"size":1420,"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":46,"forks":0,"open_issues":46,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63"},"html":{"href":"https://github.com/BoTreeConsultingTeam/invoiceme/pull/63"},"issue":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/63"},"comments":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/BoTreeConsultingTeam/invoiceme/statuses/7936b6efa3701f9bf1f228627788d0e2debc3401"}}}}