{"action":"created","comment":{"url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/comments/23698974","id":23698974,"diff_hunk":"@@ -3,7 +3,10 @@ class Ability\n \n   def initialize(user)\n     if user.class == Admin\n-      can :read, Admin, id: user.id\n+      can [:read, :update, :destroy], Admin, id: user.id\n+      can [:new, :create, :destroy], Admin\n+      can [:read, :edit, :update, :new, :create, :destroy], Item\n+      can [:edit, :update, :new, :create, :destroy], Category\n     elsif user.class == User","path":"app/models/ability.rb","position":9,"original_position":9,"commit_id":"e172a33f449dd5ec7e95d50de02f83b48c063189","original_commit_id":"4877311c2a8fc49f6d4f32512b76c7caf0215fee","user":{"login":"scottalexandra","id":8812335,"avatar_url":"https://avatars.githubusercontent.com/u/8812335?v=3","gravatar_id":"","url":"https://api.github.com/users/scottalexandra","html_url":"https://github.com/scottalexandra","followers_url":"https://api.github.com/users/scottalexandra/followers","following_url":"https://api.github.com/users/scottalexandra/following{/other_user}","gists_url":"https://api.github.com/users/scottalexandra/gists{/gist_id}","starred_url":"https://api.github.com/users/scottalexandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottalexandra/subscriptions","organizations_url":"https://api.github.com/users/scottalexandra/orgs","repos_url":"https://api.github.com/users/scottalexandra/repos","events_url":"https://api.github.com/users/scottalexandra/events{/privacy}","received_events_url":"https://api.github.com/users/scottalexandra/received_events","type":"User","site_admin":false},"body":"Actuall I believe the correct syntax is can :manage Item, and can :manage Category","created_at":"2015-01-28T16:23:39Z","updated_at":"2015-01-28T16:23:39Z","html_url":"https://github.com/scottalexandra/dinner_dash/pull/72#discussion_r23698974","pull_request_url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/comments/23698974"},"html":{"href":"https://github.com/scottalexandra/dinner_dash/pull/72#discussion_r23698974"},"pull_request":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72","id":28165530,"html_url":"https://github.com/scottalexandra/dinner_dash/pull/72","diff_url":"https://github.com/scottalexandra/dinner_dash/pull/72.diff","patch_url":"https://github.com/scottalexandra/dinner_dash/pull/72.patch","issue_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/72","number":72,"state":"closed","locked":false,"title":"Unauthenticated user access restrictions","user":{"login":"kpearson","id":3293289,"avatar_url":"https://avatars.githubusercontent.com/u/3293289?v=3","gravatar_id":"","url":"https://api.github.com/users/kpearson","html_url":"https://github.com/kpearson","followers_url":"https://api.github.com/users/kpearson/followers","following_url":"https://api.github.com/users/kpearson/following{/other_user}","gists_url":"https://api.github.com/users/kpearson/gists{/gist_id}","starred_url":"https://api.github.com/users/kpearson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpearson/subscriptions","organizations_url":"https://api.github.com/users/kpearson/orgs","repos_url":"https://api.github.com/users/kpearson/repos","events_url":"https://api.github.com/users/kpearson/events{/privacy}","received_events_url":"https://api.github.com/users/kpearson/received_events","type":"User","site_admin":false},"body":"_Stay the patient course. \r\nOf little worth is your ire. \r\nThe network is down. _","created_at":"2015-01-28T03:18:26Z","updated_at":"2015-01-28T16:23:39Z","closed_at":"2015-01-28T15:53:07Z","merged_at":"2015-01-28T15:53:07Z","merge_commit_sha":"f99db4c48ba0ce9414dc8c5ce70b716c882751ba","assignee":{"login":"kpearson","id":3293289,"avatar_url":"https://avatars.githubusercontent.com/u/3293289?v=3","gravatar_id":"","url":"https://api.github.com/users/kpearson","html_url":"https://github.com/kpearson","followers_url":"https://api.github.com/users/kpearson/followers","following_url":"https://api.github.com/users/kpearson/following{/other_user}","gists_url":"https://api.github.com/users/kpearson/gists{/gist_id}","starred_url":"https://api.github.com/users/kpearson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpearson/subscriptions","organizations_url":"https://api.github.com/users/kpearson/orgs","repos_url":"https://api.github.com/users/kpearson/repos","events_url":"https://api.github.com/users/kpearson/events{/privacy}","received_events_url":"https://api.github.com/users/kpearson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72/commits","review_comments_url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72/comments","review_comment_url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/72/comments","statuses_url":"https://api.github.com/repos/scottalexandra/dinner_dash/statuses/e172a33f449dd5ec7e95d50de02f83b48c063189","head":{"label":"scottalexandra:unauthenticated_user_access_restrictions","ref":"unauthenticated_user_access_restrictions","sha":"e172a33f449dd5ec7e95d50de02f83b48c063189","user":{"login":"scottalexandra","id":8812335,"avatar_url":"https://avatars.githubusercontent.com/u/8812335?v=3","gravatar_id":"","url":"https://api.github.com/users/scottalexandra","html_url":"https://github.com/scottalexandra","followers_url":"https://api.github.com/users/scottalexandra/followers","following_url":"https://api.github.com/users/scottalexandra/following{/other_user}","gists_url":"https://api.github.com/users/scottalexandra/gists{/gist_id}","starred_url":"https://api.github.com/users/scottalexandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottalexandra/subscriptions","organizations_url":"https://api.github.com/users/scottalexandra/orgs","repos_url":"https://api.github.com/users/scottalexandra/repos","events_url":"https://api.github.com/users/scottalexandra/events{/privacy}","received_events_url":"https://api.github.com/users/scottalexandra/received_events","type":"User","site_admin":false},"repo":{"id":29541908,"name":"dinner_dash","full_name":"scottalexandra/dinner_dash","owner":{"login":"scottalexandra","id":8812335,"avatar_url":"https://avatars.githubusercontent.com/u/8812335?v=3","gravatar_id":"","url":"https://api.github.com/users/scottalexandra","html_url":"https://github.com/scottalexandra","followers_url":"https://api.github.com/users/scottalexandra/followers","following_url":"https://api.github.com/users/scottalexandra/following{/other_user}","gists_url":"https://api.github.com/users/scottalexandra/gists{/gist_id}","starred_url":"https://api.github.com/users/scottalexandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottalexandra/subscriptions","organizations_url":"https://api.github.com/users/scottalexandra/orgs","repos_url":"https://api.github.com/users/scottalexandra/repos","events_url":"https://api.github.com/users/scottalexandra/events{/privacy}","received_events_url":"https://api.github.com/users/scottalexandra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottalexandra/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/scottalexandra/dinner_dash","forks_url":"https://api.github.com/repos/scottalexandra/dinner_dash/forks","keys_url":"https://api.github.com/repos/scottalexandra/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottalexandra/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottalexandra/dinner_dash/teams","hooks_url":"https://api.github.com/repos/scottalexandra/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/scottalexandra/dinner_dash/events","assignees_url":"https://api.github.com/repos/scottalexandra/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/scottalexandra/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/scottalexandra/dinner_dash/tags","blobs_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottalexandra/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/scottalexandra/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/scottalexandra/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/scottalexandra/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/scottalexandra/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/scottalexandra/dinner_dash/subscription","commits_url":"https://api.github.com/repos/scottalexandra/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottalexandra/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/scottalexandra/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/scottalexandra/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottalexandra/dinner_dash/merges","archive_url":"https://api.github.com/repos/scottalexandra/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottalexandra/dinner_dash/downloads","issues_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/scottalexandra/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/scottalexandra/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottalexandra/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/scottalexandra/dinner_dash/releases{/id}","created_at":"2015-01-20T17:22:56Z","updated_at":"2015-01-28T15:53:08Z","pushed_at":"2015-01-28T15:53:08Z","git_url":"git://github.com/scottalexandra/dinner_dash.git","ssh_url":"git@github.com:scottalexandra/dinner_dash.git","clone_url":"https://github.com/scottalexandra/dinner_dash.git","svn_url":"https://github.com/scottalexandra/dinner_dash","homepage":null,"size":22173,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"scottalexandra:master","ref":"master","sha":"9dd2e970f74656b2c4c389601786198d2fc804ad","user":{"login":"scottalexandra","id":8812335,"avatar_url":"https://avatars.githubusercontent.com/u/8812335?v=3","gravatar_id":"","url":"https://api.github.com/users/scottalexandra","html_url":"https://github.com/scottalexandra","followers_url":"https://api.github.com/users/scottalexandra/followers","following_url":"https://api.github.com/users/scottalexandra/following{/other_user}","gists_url":"https://api.github.com/users/scottalexandra/gists{/gist_id}","starred_url":"https://api.github.com/users/scottalexandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottalexandra/subscriptions","organizations_url":"https://api.github.com/users/scottalexandra/orgs","repos_url":"https://api.github.com/users/scottalexandra/repos","events_url":"https://api.github.com/users/scottalexandra/events{/privacy}","received_events_url":"https://api.github.com/users/scottalexandra/received_events","type":"User","site_admin":false},"repo":{"id":29541908,"name":"dinner_dash","full_name":"scottalexandra/dinner_dash","owner":{"login":"scottalexandra","id":8812335,"avatar_url":"https://avatars.githubusercontent.com/u/8812335?v=3","gravatar_id":"","url":"https://api.github.com/users/scottalexandra","html_url":"https://github.com/scottalexandra","followers_url":"https://api.github.com/users/scottalexandra/followers","following_url":"https://api.github.com/users/scottalexandra/following{/other_user}","gists_url":"https://api.github.com/users/scottalexandra/gists{/gist_id}","starred_url":"https://api.github.com/users/scottalexandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottalexandra/subscriptions","organizations_url":"https://api.github.com/users/scottalexandra/orgs","repos_url":"https://api.github.com/users/scottalexandra/repos","events_url":"https://api.github.com/users/scottalexandra/events{/privacy}","received_events_url":"https://api.github.com/users/scottalexandra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottalexandra/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/scottalexandra/dinner_dash","forks_url":"https://api.github.com/repos/scottalexandra/dinner_dash/forks","keys_url":"https://api.github.com/repos/scottalexandra/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottalexandra/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottalexandra/dinner_dash/teams","hooks_url":"https://api.github.com/repos/scottalexandra/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/scottalexandra/dinner_dash/events","assignees_url":"https://api.github.com/repos/scottalexandra/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/scottalexandra/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/scottalexandra/dinner_dash/tags","blobs_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottalexandra/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/scottalexandra/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/scottalexandra/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/scottalexandra/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/scottalexandra/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/scottalexandra/dinner_dash/subscription","commits_url":"https://api.github.com/repos/scottalexandra/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottalexandra/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottalexandra/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/scottalexandra/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/scottalexandra/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottalexandra/dinner_dash/merges","archive_url":"https://api.github.com/repos/scottalexandra/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottalexandra/dinner_dash/downloads","issues_url":"https://api.github.com/repos/scottalexandra/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/scottalexandra/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/scottalexandra/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottalexandra/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/scottalexandra/dinner_dash/releases{/id}","created_at":"2015-01-20T17:22:56Z","updated_at":"2015-01-28T15:53:08Z","pushed_at":"2015-01-28T15:53:08Z","git_url":"git://github.com/scottalexandra/dinner_dash.git","ssh_url":"git@github.com:scottalexandra/dinner_dash.git","clone_url":"https://github.com/scottalexandra/dinner_dash.git","svn_url":"https://github.com/scottalexandra/dinner_dash","homepage":null,"size":22173,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72"},"html":{"href":"https://github.com/scottalexandra/dinner_dash/pull/72"},"issue":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/72"},"comments":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/scottalexandra/dinner_dash/statuses/e172a33f449dd5ec7e95d50de02f83b48c063189"}}}}