{"action":"opened","number":102,"pull_request":{"url":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/102","id":139832214,"html_url":"https://github.com/anthony-robin/BlogMVC/pull/102","diff_url":"https://github.com/anthony-robin/BlogMVC/pull/102.diff","patch_url":"https://github.com/anthony-robin/BlogMVC/pull/102.patch","issue_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/102","number":102,"state":"open","locked":false,"title":"LOAD resource with cancancan","user":{"login":"anthony-robin","id":5428510,"avatar_url":"https://avatars2.githubusercontent.com/u/5428510?v=4","gravatar_id":"","url":"https://api.github.com/users/anthony-robin","html_url":"https://github.com/anthony-robin","followers_url":"https://api.github.com/users/anthony-robin/followers","following_url":"https://api.github.com/users/anthony-robin/following{/other_user}","gists_url":"https://api.github.com/users/anthony-robin/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-robin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-robin/subscriptions","organizations_url":"https://api.github.com/users/anthony-robin/orgs","repos_url":"https://api.github.com/users/anthony-robin/repos","events_url":"https://api.github.com/users/anthony-robin/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-robin/received_events","type":"User","site_admin":false},"body":"`cancancan` make it very easier to load and authorize controller actions.\r\nCurrently, only the autorization resource is handled, so we should use it\r\nto load as well.\r\n\r\nDetails:\r\n- ADD initializer to patch `cancancan` with `friendly_id`\r\n- REPLACE old `before_action` by `load_resource` (cancancan style !)","created_at":"2017-09-07T15:12:23Z","updated_at":"2017-09-07T15:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/102/commits","review_comments_url":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/102/comments","review_comment_url":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/102/comments","statuses_url":"https://api.github.com/repos/anthony-robin/BlogMVC/statuses/51dcd40464b9c8e179edfe13d0222485af12a4ca","head":{"label":"anthony-robin:load_with_cancancan","ref":"load_with_cancancan","sha":"51dcd40464b9c8e179edfe13d0222485af12a4ca","user":{"login":"anthony-robin","id":5428510,"avatar_url":"https://avatars2.githubusercontent.com/u/5428510?v=4","gravatar_id":"","url":"https://api.github.com/users/anthony-robin","html_url":"https://github.com/anthony-robin","followers_url":"https://api.github.com/users/anthony-robin/followers","following_url":"https://api.github.com/users/anthony-robin/following{/other_user}","gists_url":"https://api.github.com/users/anthony-robin/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-robin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-robin/subscriptions","organizations_url":"https://api.github.com/users/anthony-robin/orgs","repos_url":"https://api.github.com/users/anthony-robin/repos","events_url":"https://api.github.com/users/anthony-robin/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-robin/received_events","type":"User","site_admin":false},"repo":{"id":79933823,"name":"BlogMVC","full_name":"anthony-robin/BlogMVC","owner":{"login":"anthony-robin","id":5428510,"avatar_url":"https://avatars2.githubusercontent.com/u/5428510?v=4","gravatar_id":"","url":"https://api.github.com/users/anthony-robin","html_url":"https://github.com/anthony-robin","followers_url":"https://api.github.com/users/anthony-robin/followers","following_url":"https://api.github.com/users/anthony-robin/following{/other_user}","gists_url":"https://api.github.com/users/anthony-robin/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-robin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-robin/subscriptions","organizations_url":"https://api.github.com/users/anthony-robin/orgs","repos_url":"https://api.github.com/users/anthony-robin/repos","events_url":"https://api.github.com/users/anthony-robin/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-robin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anthony-robin/BlogMVC","description":"Rails 5 Blog MVC","fork":false,"url":"https://api.github.com/repos/anthony-robin/BlogMVC","forks_url":"https://api.github.com/repos/anthony-robin/BlogMVC/forks","keys_url":"https://api.github.com/repos/anthony-robin/BlogMVC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anthony-robin/BlogMVC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anthony-robin/BlogMVC/teams","hooks_url":"https://api.github.com/repos/anthony-robin/BlogMVC/hooks","issue_events_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/events{/number}","events_url":"https://api.github.com/repos/anthony-robin/BlogMVC/events","assignees_url":"https://api.github.com/repos/anthony-robin/BlogMVC/assignees{/user}","branches_url":"https://api.github.com/repos/anthony-robin/BlogMVC/branches{/branch}","tags_url":"https://api.github.com/repos/anthony-robin/BlogMVC/tags","blobs_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/refs{/sha}","trees_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anthony-robin/BlogMVC/statuses/{sha}","languages_url":"https://api.github.com/repos/anthony-robin/BlogMVC/languages","stargazers_url":"https://api.github.com/repos/anthony-robin/BlogMVC/stargazers","contributors_url":"https://api.github.com/repos/anthony-robin/BlogMVC/contributors","subscribers_url":"https://api.github.com/repos/anthony-robin/BlogMVC/subscribers","subscription_url":"https://api.github.com/repos/anthony-robin/BlogMVC/subscription","commits_url":"https://api.github.com/repos/anthony-robin/BlogMVC/commits{/sha}","git_commits_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/commits{/sha}","comments_url":"https://api.github.com/repos/anthony-robin/BlogMVC/comments{/number}","issue_comment_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/comments{/number}","contents_url":"https://api.github.com/repos/anthony-robin/BlogMVC/contents/{+path}","compare_url":"https://api.github.com/repos/anthony-robin/BlogMVC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anthony-robin/BlogMVC/merges","archive_url":"https://api.github.com/repos/anthony-robin/BlogMVC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anthony-robin/BlogMVC/downloads","issues_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues{/number}","pulls_url":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls{/number}","milestones_url":"https://api.github.com/repos/anthony-robin/BlogMVC/milestones{/number}","notifications_url":"https://api.github.com/repos/anthony-robin/BlogMVC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anthony-robin/BlogMVC/labels{/name}","releases_url":"https://api.github.com/repos/anthony-robin/BlogMVC/releases{/id}","deployments_url":"https://api.github.com/repos/anthony-robin/BlogMVC/deployments","created_at":"2017-01-24T17:10:05Z","updated_at":"2017-07-31T13:17:24Z","pushed_at":"2017-09-07T15:11:54Z","git_url":"git://github.com/anthony-robin/BlogMVC.git","ssh_url":"git@github.com:anthony-robin/BlogMVC.git","clone_url":"https://github.com/anthony-robin/BlogMVC.git","svn_url":"https://github.com/anthony-robin/BlogMVC","homepage":"","size":1989,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"anthony-robin:master","ref":"master","sha":"f266fbbde694b9384a1b893959761d27f8913d7a","user":{"login":"anthony-robin","id":5428510,"avatar_url":"https://avatars2.githubusercontent.com/u/5428510?v=4","gravatar_id":"","url":"https://api.github.com/users/anthony-robin","html_url":"https://github.com/anthony-robin","followers_url":"https://api.github.com/users/anthony-robin/followers","following_url":"https://api.github.com/users/anthony-robin/following{/other_user}","gists_url":"https://api.github.com/users/anthony-robin/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-robin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-robin/subscriptions","organizations_url":"https://api.github.com/users/anthony-robin/orgs","repos_url":"https://api.github.com/users/anthony-robin/repos","events_url":"https://api.github.com/users/anthony-robin/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-robin/received_events","type":"User","site_admin":false},"repo":{"id":79933823,"name":"BlogMVC","full_name":"anthony-robin/BlogMVC","owner":{"login":"anthony-robin","id":5428510,"avatar_url":"https://avatars2.githubusercontent.com/u/5428510?v=4","gravatar_id":"","url":"https://api.github.com/users/anthony-robin","html_url":"https://github.com/anthony-robin","followers_url":"https://api.github.com/users/anthony-robin/followers","following_url":"https://api.github.com/users/anthony-robin/following{/other_user}","gists_url":"https://api.github.com/users/anthony-robin/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-robin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-robin/subscriptions","organizations_url":"https://api.github.com/users/anthony-robin/orgs","repos_url":"https://api.github.com/users/anthony-robin/repos","events_url":"https://api.github.com/users/anthony-robin/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-robin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anthony-robin/BlogMVC","description":"Rails 5 Blog MVC","fork":false,"url":"https://api.github.com/repos/anthony-robin/BlogMVC","forks_url":"https://api.github.com/repos/anthony-robin/BlogMVC/forks","keys_url":"https://api.github.com/repos/anthony-robin/BlogMVC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anthony-robin/BlogMVC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anthony-robin/BlogMVC/teams","hooks_url":"https://api.github.com/repos/anthony-robin/BlogMVC/hooks","issue_events_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/events{/number}","events_url":"https://api.github.com/repos/anthony-robin/BlogMVC/events","assignees_url":"https://api.github.com/repos/anthony-robin/BlogMVC/assignees{/user}","branches_url":"https://api.github.com/repos/anthony-robin/BlogMVC/branches{/branch}","tags_url":"https://api.github.com/repos/anthony-robin/BlogMVC/tags","blobs_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/refs{/sha}","trees_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anthony-robin/BlogMVC/statuses/{sha}","languages_url":"https://api.github.com/repos/anthony-robin/BlogMVC/languages","stargazers_url":"https://api.github.com/repos/anthony-robin/BlogMVC/stargazers","contributors_url":"https://api.github.com/repos/anthony-robin/BlogMVC/contributors","subscribers_url":"https://api.github.com/repos/anthony-robin/BlogMVC/subscribers","subscription_url":"https://api.github.com/repos/anthony-robin/BlogMVC/subscription","commits_url":"https://api.github.com/repos/anthony-robin/BlogMVC/commits{/sha}","git_commits_url":"https://api.github.com/repos/anthony-robin/BlogMVC/git/commits{/sha}","comments_url":"https://api.github.com/repos/anthony-robin/BlogMVC/comments{/number}","issue_comment_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/comments{/number}","contents_url":"https://api.github.com/repos/anthony-robin/BlogMVC/contents/{+path}","compare_url":"https://api.github.com/repos/anthony-robin/BlogMVC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anthony-robin/BlogMVC/merges","archive_url":"https://api.github.com/repos/anthony-robin/BlogMVC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anthony-robin/BlogMVC/downloads","issues_url":"https://api.github.com/repos/anthony-robin/BlogMVC/issues{/number}","pulls_url":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls{/number}","milestones_url":"https://api.github.com/repos/anthony-robin/BlogMVC/milestones{/number}","notifications_url":"https://api.github.com/repos/anthony-robin/BlogMVC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anthony-robin/BlogMVC/labels{/name}","releases_url":"https://api.github.com/repos/anthony-robin/BlogMVC/releases{/id}","deployments_url":"https://api.github.com/repos/anthony-robin/BlogMVC/deployments","created_at":"2017-01-24T17:10:05Z","updated_at":"2017-07-31T13:17:24Z","pushed_at":"2017-09-07T15:11:54Z","git_url":"git://github.com/anthony-robin/BlogMVC.git","ssh_url":"git@github.com:anthony-robin/BlogMVC.git","clone_url":"https://github.com/anthony-robin/BlogMVC.git","svn_url":"https://github.com/anthony-robin/BlogMVC","homepage":"","size":1989,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/102"},"html":{"href":"https://github.com/anthony-robin/BlogMVC/pull/102"},"issue":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/102"},"comments":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/anthony-robin/BlogMVC/statuses/51dcd40464b9c8e179edfe13d0222485af12a4ca"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":28,"deletions":13,"changed_files":2}}
{"actor":{"display_login":"anthony-robin"}}