{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_7/pulls/comments/70577521","id":70577521,"diff_hunk":"@@ -3,14 +3,17 @@ class Ability\n \n   def initialize user\n     user ||= User.new\n+\n+    alias_action :update, :destroy, to: :update_destroy\n+\n     if user.admin?\n       can :manage, :all\n     elsif user.member?\n       can :read, :all\n       can :show, User\n       can :update, User, id: user.id\n       can :create, Comment\n-      can :update, Comment, user_id: user.id\n+      can :update_destroy, Comment, user_id: user.id","path":"app/models/ability.rb","position":15,"original_position":15,"commit_id":"0918504eca866146e0e23e41bed751b24e0c014e","original_commit_id":"0918504eca866146e0e23e41bed751b24e0c014e","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":"sao lại là update_destroy nhỉ?","created_at":"2016-07-13T07:41:11Z","updated_at":"2016-07-13T07:41:11Z","html_url":"https://github.com/framgia/fdf_7/pull/16#discussion_r70577521","pull_request_url":"https://api.github.com/repos/framgia/fdf_7/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/comments/70577521"},"html":{"href":"https://github.com/framgia/fdf_7/pull/16#discussion_r70577521"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_7/pulls/16","id":77220501,"html_url":"https://github.com/framgia/fdf_7/pull/16","diff_url":"https://github.com/framgia/fdf_7/pull/16.diff","patch_url":"https://github.com/framgia/fdf_7/pull/16.patch","issue_url":"https://api.github.com/repos/framgia/fdf_7/issues/16","number":16,"state":"open","locked":false,"title":"Delete comment","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-13T02:13:15Z","updated_at":"2016-07-13T07:41:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0c2a2ecfdaa2e6edcbe67cf3c5764a134786cfc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_7/pulls/16/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_7/pulls/16/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/16/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_7/statuses/0918504eca866146e0e23e41bed751b24e0c014e","head":{"label":"phanbt58:68248-delete-comment","ref":"68248-delete-comment","sha":"0918504eca866146e0e23e41bed751b24e0c014e","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-13T07:22:19Z","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":67,"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":"820bd6ea0b8b84278e30463369d239212f28e879","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-13T07:40:02Z","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":86,"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/16"},"html":{"href":"https://github.com/framgia/fdf_7/pull/16"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_7/issues/16"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_7/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_7/pulls/16/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/16/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_7/statuses/0918504eca866146e0e23e41bed751b24e0c014e"}}}}
{"actor":{"display_login":"nhunght"}}