{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_7/pulls/comments/70927368","id":70927368,"diff_hunk":"@@ -1,4 +1,22 @@\n class LineItem < ActiveRecord::Base\n   belongs_to :order\n   belongs_to :product\n+\n+  before_save :update_total_price\n+\n+  scope :order_number, ->(order){where order_id: order.id}","path":"app/models/line_item.rb","position":7,"original_position":7,"commit_id":"456ba6b3560b7b9754b39586b9ca71f1e0b1b13f","original_commit_id":"456ba6b3560b7b9754b39586b9ca71f1e0b1b13f","user":{"login":"nhunght","id":14239703,"avatar_url":"https://avatars.githubusercontent.com/u/14239703?v=3","gravatar_id":"","url":"https://api.github.com/users/nhunght","html_url":"https://github.com/nhunght","followers_url":"https://api.github.com/users/nhunght/followers","following_url":"https://api.github.com/users/nhunght/following{/other_user}","gists_url":"https://api.github.com/users/nhunght/gists{/gist_id}","starred_url":"https://api.github.com/users/nhunght/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhunght/subscriptions","organizations_url":"https://api.github.com/users/nhunght/orgs","repos_url":"https://api.github.com/users/nhunght/repos","events_url":"https://api.github.com/users/nhunght/events{/privacy}","received_events_url":"https://api.github.com/users/nhunght/received_events","type":"User","site_admin":false},"body":"remove ()","created_at":"2016-07-15T06:30:08Z","updated_at":"2016-07-15T06:30:08Z","html_url":"https://github.com/framgia/fdf_7/pull/19#discussion_r70927368","pull_request_url":"https://api.github.com/repos/framgia/fdf_7/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/comments/70927368"},"html":{"href":"https://github.com/framgia/fdf_7/pull/19#discussion_r70927368"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_7/pulls/19","id":77495747,"html_url":"https://github.com/framgia/fdf_7/pull/19","diff_url":"https://github.com/framgia/fdf_7/pull/19.diff","patch_url":"https://github.com/framgia/fdf_7/pull/19.patch","issue_url":"https://api.github.com/repos/framgia/fdf_7/issues/19","number":19,"state":"open","locked":false,"title":"User order food/drink","user":{"login":"phanbt58","id":18113181,"avatar_url":"https://avatars.githubusercontent.com/u/18113181?v=3","gravatar_id":"","url":"https://api.github.com/users/phanbt58","html_url":"https://github.com/phanbt58","followers_url":"https://api.github.com/users/phanbt58/followers","following_url":"https://api.github.com/users/phanbt58/following{/other_user}","gists_url":"https://api.github.com/users/phanbt58/gists{/gist_id}","starred_url":"https://api.github.com/users/phanbt58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanbt58/subscriptions","organizations_url":"https://api.github.com/users/phanbt58/orgs","repos_url":"https://api.github.com/users/phanbt58/repos","events_url":"https://api.github.com/users/phanbt58/events{/privacy}","received_events_url":"https://api.github.com/users/phanbt58/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T17:41:59Z","updated_at":"2016-07-15T06:30:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6de6e071d0ecc6db13f5e740760b8e5650b692a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_7/pulls/19/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_7/pulls/19/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_7/issues/19/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_7/statuses/456ba6b3560b7b9754b39586b9ca71f1e0b1b13f","head":{"label":"phanbt58:user-add-order","ref":"user-add-order","sha":"456ba6b3560b7b9754b39586b9ca71f1e0b1b13f","user":{"login":"phanbt58","id":18113181,"avatar_url":"https://avatars.githubusercontent.com/u/18113181?v=3","gravatar_id":"","url":"https://api.github.com/users/phanbt58","html_url":"https://github.com/phanbt58","followers_url":"https://api.github.com/users/phanbt58/followers","following_url":"https://api.github.com/users/phanbt58/following{/other_user}","gists_url":"https://api.github.com/users/phanbt58/gists{/gist_id}","starred_url":"https://api.github.com/users/phanbt58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanbt58/subscriptions","organizations_url":"https://api.github.com/users/phanbt58/orgs","repos_url":"https://api.github.com/users/phanbt58/repos","events_url":"https://api.github.com/users/phanbt58/events{/privacy}","received_events_url":"https://api.github.com/users/phanbt58/received_events","type":"User","site_admin":false},"repo":{"id":62689705,"name":"fdf_7","full_name":"phanbt58/fdf_7","owner":{"login":"phanbt58","id":18113181,"avatar_url":"https://avatars.githubusercontent.com/u/18113181?v=3","gravatar_id":"","url":"https://api.github.com/users/phanbt58","html_url":"https://github.com/phanbt58","followers_url":"https://api.github.com/users/phanbt58/followers","following_url":"https://api.github.com/users/phanbt58/following{/other_user}","gists_url":"https://api.github.com/users/phanbt58/gists{/gist_id}","starred_url":"https://api.github.com/users/phanbt58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanbt58/subscriptions","organizations_url":"https://api.github.com/users/phanbt58/orgs","repos_url":"https://api.github.com/users/phanbt58/repos","events_url":"https://api.github.com/users/phanbt58/events{/privacy}","received_events_url":"https://api.github.com/users/phanbt58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phanbt58/fdf_7","description":"Foods & Drinks (training)","fork":true,"url":"https://api.github.com/repos/phanbt58/fdf_7","forks_url":"https://api.github.com/repos/phanbt58/fdf_7/forks","keys_url":"https://api.github.com/repos/phanbt58/fdf_7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phanbt58/fdf_7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phanbt58/fdf_7/teams","hooks_url":"https://api.github.com/repos/phanbt58/fdf_7/hooks","issue_events_url":"https://api.github.com/repos/phanbt58/fdf_7/issues/events{/number}","events_url":"https://api.github.com/repos/phanbt58/fdf_7/events","assignees_url":"https://api.github.com/repos/phanbt58/fdf_7/assignees{/user}","branches_url":"https://api.github.com/repos/phanbt58/fdf_7/branches{/branch}","tags_url":"https://api.github.com/repos/phanbt58/fdf_7/tags","blobs_url":"https://api.github.com/repos/phanbt58/fdf_7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phanbt58/fdf_7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phanbt58/fdf_7/git/refs{/sha}","trees_url":"https://api.github.com/repos/phanbt58/fdf_7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phanbt58/fdf_7/statuses/{sha}","languages_url":"https://api.github.com/repos/phanbt58/fdf_7/languages","stargazers_url":"https://api.github.com/repos/phanbt58/fdf_7/stargazers","contributors_url":"https://api.github.com/repos/phanbt58/fdf_7/contributors","subscribers_url":"https://api.github.com/repos/phanbt58/fdf_7/subscribers","subscription_url":"https://api.github.com/repos/phanbt58/fdf_7/subscription","commits_url":"https://api.github.com/repos/phanbt58/fdf_7/commits{/sha}","git_commits_url":"https://api.github.com/repos/phanbt58/fdf_7/git/commits{/sha}","comments_url":"https://api.github.com/repos/phanbt58/fdf_7/comments{/number}","issue_comment_url":"https://api.github.com/repos/phanbt58/fdf_7/issues/comments{/number}","contents_url":"https://api.github.com/repos/phanbt58/fdf_7/contents/{+path}","compare_url":"https://api.github.com/repos/phanbt58/fdf_7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phanbt58/fdf_7/merges","archive_url":"https://api.github.com/repos/phanbt58/fdf_7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phanbt58/fdf_7/downloads","issues_url":"https://api.github.com/repos/phanbt58/fdf_7/issues{/number}","pulls_url":"https://api.github.com/repos/phanbt58/fdf_7/pulls{/number}","milestones_url":"https://api.github.com/repos/phanbt58/fdf_7/milestones{/number}","notifications_url":"https://api.github.com/repos/phanbt58/fdf_7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phanbt58/fdf_7/labels{/name}","releases_url":"https://api.github.com/repos/phanbt58/fdf_7/releases{/id}","deployments_url":"https://api.github.com/repos/phanbt58/fdf_7/deployments","created_at":"2016-07-06T03:56:57Z","updated_at":"2016-07-05T01:30:46Z","pushed_at":"2016-07-15T06:22:04Z","git_url":"git://github.com/phanbt58/fdf_7.git","ssh_url":"git@github.com:phanbt58/fdf_7.git","clone_url":"https://github.com/phanbt58/fdf_7.git","svn_url":"https://github.com/phanbt58/fdf_7","homepage":null,"size":138,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"framgia:develop","ref":"develop","sha":"86a594e3d7810f709667525507995baaa89c8b6d","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":62596975,"name":"fdf_7","full_name":"framgia/fdf_7","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_7","description":"Foods & Drinks (training)","fork":false,"url":"https://api.github.com/repos/framgia/fdf_7","forks_url":"https://api.github.com/repos/framgia/fdf_7/forks","keys_url":"https://api.github.com/repos/framgia/fdf_7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_7/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_7/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_7/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_7/events","assignees_url":"https://api.github.com/repos/framgia/fdf_7/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_7/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_7/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_7/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_7/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_7/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_7/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_7/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_7/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_7/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_7/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_7/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_7/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_7/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_7/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_7/merges","archive_url":"https://api.github.com/repos/framgia/fdf_7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_7/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_7/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_7/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_7/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_7/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_7/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_7/deployments","created_at":"2016-07-05T01:30:46Z","updated_at":"2016-07-05T01:30:46Z","pushed_at":"2016-07-15T06:22:04Z","git_url":"git://github.com/framgia/fdf_7.git","ssh_url":"git@github.com:framgia/fdf_7.git","clone_url":"https://github.com/framgia/fdf_7.git","svn_url":"https://github.com/framgia/fdf_7","homepage":null,"size":146,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/19"},"html":{"href":"https://github.com/framgia/fdf_7/pull/19"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_7/issues/19"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_7/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_7/statuses/456ba6b3560b7b9754b39586b9ca71f1e0b1b13f"}}}}
{"actor":{"display_login":"nhunght"}}