{"action":"created","comment":{"url":"https://api.github.com/repos/websumy/optolead/pulls/comments/30803994","id":30803994,"diff_hunk":"@@ -26,13 +26,25 @@\n #\n \n class Lead < ActiveRecord::Base\n+  after_create :send_post_back, if: 'user.post_back_url'","path":"app/models/lead.rb","position":4,"original_position":4,"commit_id":"f9b5ab19fcc32a1d65d97e9f998d3fab2118cdad","original_commit_id":"f9b5ab19fcc32a1d65d97e9f998d3fab2118cdad","user":{"login":"websumy","id":1804272,"avatar_url":"https://avatars.githubusercontent.com/u/1804272?v=3","gravatar_id":"","url":"https://api.github.com/users/websumy","html_url":"https://github.com/websumy","followers_url":"https://api.github.com/users/websumy/followers","following_url":"https://api.github.com/users/websumy/following{/other_user}","gists_url":"https://api.github.com/users/websumy/gists{/gist_id}","starred_url":"https://api.github.com/users/websumy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websumy/subscriptions","organizations_url":"https://api.github.com/users/websumy/orgs","repos_url":"https://api.github.com/users/websumy/repos","events_url":"https://api.github.com/users/websumy/events{/privacy}","received_events_url":"https://api.github.com/users/websumy/received_events","type":"User","site_admin":false},"body":"нужно бы добавить валидацию, что post_back_url это урл ","created_at":"2015-05-21T13:58:00Z","updated_at":"2015-05-21T13:58:00Z","html_url":"https://github.com/websumy/optolead/pull/1#discussion_r30803994","pull_request_url":"https://api.github.com/repos/websumy/optolead/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/websumy/optolead/pulls/comments/30803994"},"html":{"href":"https://github.com/websumy/optolead/pull/1#discussion_r30803994"},"pull_request":{"href":"https://api.github.com/repos/websumy/optolead/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/websumy/optolead/pulls/1","id":35934093,"html_url":"https://github.com/websumy/optolead/pull/1","diff_url":"https://github.com/websumy/optolead/pull/1.diff","patch_url":"https://github.com/websumy/optolead/pull/1.patch","issue_url":"https://api.github.com/repos/websumy/optolead/issues/1","number":1,"state":"open","locked":false,"title":"add post_back_url","user":{"login":"genrih","id":804718,"avatar_url":"https://avatars.githubusercontent.com/u/804718?v=3","gravatar_id":"","url":"https://api.github.com/users/genrih","html_url":"https://github.com/genrih","followers_url":"https://api.github.com/users/genrih/followers","following_url":"https://api.github.com/users/genrih/following{/other_user}","gists_url":"https://api.github.com/users/genrih/gists{/gist_id}","starred_url":"https://api.github.com/users/genrih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genrih/subscriptions","organizations_url":"https://api.github.com/users/genrih/orgs","repos_url":"https://api.github.com/users/genrih/repos","events_url":"https://api.github.com/users/genrih/events{/privacy}","received_events_url":"https://api.github.com/users/genrih/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-21T13:37:51Z","updated_at":"2015-05-21T13:58:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05e888e1308920cadad884cdb75082cd05509912","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/websumy/optolead/pulls/1/commits","review_comments_url":"https://api.github.com/repos/websumy/optolead/pulls/1/comments","review_comment_url":"https://api.github.com/repos/websumy/optolead/pulls/comments{/number}","comments_url":"https://api.github.com/repos/websumy/optolead/issues/1/comments","statuses_url":"https://api.github.com/repos/websumy/optolead/statuses/f9b5ab19fcc32a1d65d97e9f998d3fab2118cdad","head":{"label":"websumy:post_back","ref":"post_back","sha":"f9b5ab19fcc32a1d65d97e9f998d3fab2118cdad","user":{"login":"websumy","id":1804272,"avatar_url":"https://avatars.githubusercontent.com/u/1804272?v=3","gravatar_id":"","url":"https://api.github.com/users/websumy","html_url":"https://github.com/websumy","followers_url":"https://api.github.com/users/websumy/followers","following_url":"https://api.github.com/users/websumy/following{/other_user}","gists_url":"https://api.github.com/users/websumy/gists{/gist_id}","starred_url":"https://api.github.com/users/websumy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websumy/subscriptions","organizations_url":"https://api.github.com/users/websumy/orgs","repos_url":"https://api.github.com/users/websumy/repos","events_url":"https://api.github.com/users/websumy/events{/privacy}","received_events_url":"https://api.github.com/users/websumy/received_events","type":"User","site_admin":false},"repo":{"id":33262758,"name":"optolead","full_name":"websumy/optolead","owner":{"login":"websumy","id":1804272,"avatar_url":"https://avatars.githubusercontent.com/u/1804272?v=3","gravatar_id":"","url":"https://api.github.com/users/websumy","html_url":"https://github.com/websumy","followers_url":"https://api.github.com/users/websumy/followers","following_url":"https://api.github.com/users/websumy/following{/other_user}","gists_url":"https://api.github.com/users/websumy/gists{/gist_id}","starred_url":"https://api.github.com/users/websumy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websumy/subscriptions","organizations_url":"https://api.github.com/users/websumy/orgs","repos_url":"https://api.github.com/users/websumy/repos","events_url":"https://api.github.com/users/websumy/events{/privacy}","received_events_url":"https://api.github.com/users/websumy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/websumy/optolead","description":"optoleade","fork":false,"url":"https://api.github.com/repos/websumy/optolead","forks_url":"https://api.github.com/repos/websumy/optolead/forks","keys_url":"https://api.github.com/repos/websumy/optolead/keys{/key_id}","collaborators_url":"https://api.github.com/repos/websumy/optolead/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/websumy/optolead/teams","hooks_url":"https://api.github.com/repos/websumy/optolead/hooks","issue_events_url":"https://api.github.com/repos/websumy/optolead/issues/events{/number}","events_url":"https://api.github.com/repos/websumy/optolead/events","assignees_url":"https://api.github.com/repos/websumy/optolead/assignees{/user}","branches_url":"https://api.github.com/repos/websumy/optolead/branches{/branch}","tags_url":"https://api.github.com/repos/websumy/optolead/tags","blobs_url":"https://api.github.com/repos/websumy/optolead/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/websumy/optolead/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/websumy/optolead/git/refs{/sha}","trees_url":"https://api.github.com/repos/websumy/optolead/git/trees{/sha}","statuses_url":"https://api.github.com/repos/websumy/optolead/statuses/{sha}","languages_url":"https://api.github.com/repos/websumy/optolead/languages","stargazers_url":"https://api.github.com/repos/websumy/optolead/stargazers","contributors_url":"https://api.github.com/repos/websumy/optolead/contributors","subscribers_url":"https://api.github.com/repos/websumy/optolead/subscribers","subscription_url":"https://api.github.com/repos/websumy/optolead/subscription","commits_url":"https://api.github.com/repos/websumy/optolead/commits{/sha}","git_commits_url":"https://api.github.com/repos/websumy/optolead/git/commits{/sha}","comments_url":"https://api.github.com/repos/websumy/optolead/comments{/number}","issue_comment_url":"https://api.github.com/repos/websumy/optolead/issues/comments{/number}","contents_url":"https://api.github.com/repos/websumy/optolead/contents/{+path}","compare_url":"https://api.github.com/repos/websumy/optolead/compare/{base}...{head}","merges_url":"https://api.github.com/repos/websumy/optolead/merges","archive_url":"https://api.github.com/repos/websumy/optolead/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/websumy/optolead/downloads","issues_url":"https://api.github.com/repos/websumy/optolead/issues{/number}","pulls_url":"https://api.github.com/repos/websumy/optolead/pulls{/number}","milestones_url":"https://api.github.com/repos/websumy/optolead/milestones{/number}","notifications_url":"https://api.github.com/repos/websumy/optolead/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/websumy/optolead/labels{/name}","releases_url":"https://api.github.com/repos/websumy/optolead/releases{/id}","created_at":"2015-04-01T17:43:26Z","updated_at":"2015-04-17T08:01:29Z","pushed_at":"2015-05-21T13:37:51Z","git_url":"git://github.com/websumy/optolead.git","ssh_url":"git@github.com:websumy/optolead.git","clone_url":"https://github.com/websumy/optolead.git","svn_url":"https://github.com/websumy/optolead","homepage":null,"size":292,"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":"websumy:master","ref":"master","sha":"de422d212196062a6fcb60f249a568bc333fc5ac","user":{"login":"websumy","id":1804272,"avatar_url":"https://avatars.githubusercontent.com/u/1804272?v=3","gravatar_id":"","url":"https://api.github.com/users/websumy","html_url":"https://github.com/websumy","followers_url":"https://api.github.com/users/websumy/followers","following_url":"https://api.github.com/users/websumy/following{/other_user}","gists_url":"https://api.github.com/users/websumy/gists{/gist_id}","starred_url":"https://api.github.com/users/websumy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websumy/subscriptions","organizations_url":"https://api.github.com/users/websumy/orgs","repos_url":"https://api.github.com/users/websumy/repos","events_url":"https://api.github.com/users/websumy/events{/privacy}","received_events_url":"https://api.github.com/users/websumy/received_events","type":"User","site_admin":false},"repo":{"id":33262758,"name":"optolead","full_name":"websumy/optolead","owner":{"login":"websumy","id":1804272,"avatar_url":"https://avatars.githubusercontent.com/u/1804272?v=3","gravatar_id":"","url":"https://api.github.com/users/websumy","html_url":"https://github.com/websumy","followers_url":"https://api.github.com/users/websumy/followers","following_url":"https://api.github.com/users/websumy/following{/other_user}","gists_url":"https://api.github.com/users/websumy/gists{/gist_id}","starred_url":"https://api.github.com/users/websumy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websumy/subscriptions","organizations_url":"https://api.github.com/users/websumy/orgs","repos_url":"https://api.github.com/users/websumy/repos","events_url":"https://api.github.com/users/websumy/events{/privacy}","received_events_url":"https://api.github.com/users/websumy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/websumy/optolead","description":"optoleade","fork":false,"url":"https://api.github.com/repos/websumy/optolead","forks_url":"https://api.github.com/repos/websumy/optolead/forks","keys_url":"https://api.github.com/repos/websumy/optolead/keys{/key_id}","collaborators_url":"https://api.github.com/repos/websumy/optolead/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/websumy/optolead/teams","hooks_url":"https://api.github.com/repos/websumy/optolead/hooks","issue_events_url":"https://api.github.com/repos/websumy/optolead/issues/events{/number}","events_url":"https://api.github.com/repos/websumy/optolead/events","assignees_url":"https://api.github.com/repos/websumy/optolead/assignees{/user}","branches_url":"https://api.github.com/repos/websumy/optolead/branches{/branch}","tags_url":"https://api.github.com/repos/websumy/optolead/tags","blobs_url":"https://api.github.com/repos/websumy/optolead/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/websumy/optolead/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/websumy/optolead/git/refs{/sha}","trees_url":"https://api.github.com/repos/websumy/optolead/git/trees{/sha}","statuses_url":"https://api.github.com/repos/websumy/optolead/statuses/{sha}","languages_url":"https://api.github.com/repos/websumy/optolead/languages","stargazers_url":"https://api.github.com/repos/websumy/optolead/stargazers","contributors_url":"https://api.github.com/repos/websumy/optolead/contributors","subscribers_url":"https://api.github.com/repos/websumy/optolead/subscribers","subscription_url":"https://api.github.com/repos/websumy/optolead/subscription","commits_url":"https://api.github.com/repos/websumy/optolead/commits{/sha}","git_commits_url":"https://api.github.com/repos/websumy/optolead/git/commits{/sha}","comments_url":"https://api.github.com/repos/websumy/optolead/comments{/number}","issue_comment_url":"https://api.github.com/repos/websumy/optolead/issues/comments{/number}","contents_url":"https://api.github.com/repos/websumy/optolead/contents/{+path}","compare_url":"https://api.github.com/repos/websumy/optolead/compare/{base}...{head}","merges_url":"https://api.github.com/repos/websumy/optolead/merges","archive_url":"https://api.github.com/repos/websumy/optolead/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/websumy/optolead/downloads","issues_url":"https://api.github.com/repos/websumy/optolead/issues{/number}","pulls_url":"https://api.github.com/repos/websumy/optolead/pulls{/number}","milestones_url":"https://api.github.com/repos/websumy/optolead/milestones{/number}","notifications_url":"https://api.github.com/repos/websumy/optolead/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/websumy/optolead/labels{/name}","releases_url":"https://api.github.com/repos/websumy/optolead/releases{/id}","created_at":"2015-04-01T17:43:26Z","updated_at":"2015-04-17T08:01:29Z","pushed_at":"2015-05-21T13:37:51Z","git_url":"git://github.com/websumy/optolead.git","ssh_url":"git@github.com:websumy/optolead.git","clone_url":"https://github.com/websumy/optolead.git","svn_url":"https://github.com/websumy/optolead","homepage":null,"size":292,"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/websumy/optolead/pulls/1"},"html":{"href":"https://github.com/websumy/optolead/pull/1"},"issue":{"href":"https://api.github.com/repos/websumy/optolead/issues/1"},"comments":{"href":"https://api.github.com/repos/websumy/optolead/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/websumy/optolead/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/websumy/optolead/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/websumy/optolead/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/websumy/optolead/statuses/f9b5ab19fcc32a1d65d97e9f998d3fab2118cdad"}}}}