{"action":"opened","number":304,"pull_request":{"url":"https://api.github.com/repos/elabs/pundit/pulls/304","id":41405956,"html_url":"https://github.com/elabs/pundit/pull/304","diff_url":"https://github.com/elabs/pundit/pull/304.diff","patch_url":"https://github.com/elabs/pundit/pull/304.patch","issue_url":"https://api.github.com/repos/elabs/pundit/issues/304","number":304,"state":"open","locked":false,"title":"add controller class to exception","user":{"login":"beanieboi","id":29251,"avatar_url":"https://avatars.githubusercontent.com/u/29251?v=3","gravatar_id":"","url":"https://api.github.com/users/beanieboi","html_url":"https://github.com/beanieboi","followers_url":"https://api.github.com/users/beanieboi/followers","following_url":"https://api.github.com/users/beanieboi/following{/other_user}","gists_url":"https://api.github.com/users/beanieboi/gists{/gist_id}","starred_url":"https://api.github.com/users/beanieboi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanieboi/subscriptions","organizations_url":"https://api.github.com/users/beanieboi/orgs","repos_url":"https://api.github.com/users/beanieboi/repos","events_url":"https://api.github.com/users/beanieboi/events{/privacy}","received_events_url":"https://api.github.com/users/beanieboi/received_events","type":"User","site_admin":false},"body":"hey!\r\n\r\nthis adds the controller class to AuthorizationNotPerformedError and PolicyScopingNotPerformedError, to allow better debugging capabilities. this helped me a lot to identify the controller much quicker.\r\n\r\nthis changes to output from:\r\n```\r\nFailures:\r\n\r\n  1) Access organization builds Manager sees organization projects in navigation dropdown\r\n     Failure/Error: @organization = given_an_organization\r\n     Pundit::AuthorizationNotPerformedError:\r\n       OrganizationsController\r\n     # ./lib/codeship/request_id.rb:29:in `call'\r\n     # ./spec/support/features/organizations_helpers.rb:39:in `block in when_user_clicks_on_create_new_organization_link'\r\n     # ./spec/support/features/organizations_helpers.rb:37:in `when_user_clicks_on_create_new_organization_link'\r\n     # ./spec/support/features/organizations_helpers.rb:21:in `given_an_organization'\r\n     # ./spec/acceptance/access_organization_builds_spec.rb:8:in `block (2 levels) in <top (required)>'\r\n```\r\n\r\nto\r\n\r\n```\r\nFailures:\r\n\r\n  1) Access organization builds Contributor sees filtered organization projects in navigation dropdown\r\n     Failure/Error: @organization = given_an_organization\r\n     Pundit::AuthorizationNotPerformedError:\r\n       Pundit::AuthorizationNotPerformedError\r\n     # ./lib/codeship/request_id.rb:29:in `call'\r\n     # ./spec/support/features/organizations_helpers.rb:39:in `block in when_user_clicks_on_create_new_organization_link'\r\n     # ./spec/support/features/organizations_helpers.rb:37:in `when_user_clicks_on_create_new_organization_link'\r\n     # ./spec/support/features/organizations_helpers.rb:21:in `given_an_organization'\r\n     # ./spec/acceptance/access_organization_builds_spec.rb:8:in `block (2 levels) in <top (required)>'\r\n```","created_at":"2015-08-01T18:42:33Z","updated_at":"2015-08-01T18:42:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elabs/pundit/pulls/304/commits","review_comments_url":"https://api.github.com/repos/elabs/pundit/pulls/304/comments","review_comment_url":"https://api.github.com/repos/elabs/pundit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elabs/pundit/issues/304/comments","statuses_url":"https://api.github.com/repos/elabs/pundit/statuses/eb903a80479a75da42e62e502be5f0b2b3422119","head":{"label":"beanieboi:controller-class","ref":"controller-class","sha":"eb903a80479a75da42e62e502be5f0b2b3422119","user":{"login":"beanieboi","id":29251,"avatar_url":"https://avatars.githubusercontent.com/u/29251?v=3","gravatar_id":"","url":"https://api.github.com/users/beanieboi","html_url":"https://github.com/beanieboi","followers_url":"https://api.github.com/users/beanieboi/followers","following_url":"https://api.github.com/users/beanieboi/following{/other_user}","gists_url":"https://api.github.com/users/beanieboi/gists{/gist_id}","starred_url":"https://api.github.com/users/beanieboi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanieboi/subscriptions","organizations_url":"https://api.github.com/users/beanieboi/orgs","repos_url":"https://api.github.com/users/beanieboi/repos","events_url":"https://api.github.com/users/beanieboi/events{/privacy}","received_events_url":"https://api.github.com/users/beanieboi/received_events","type":"User","site_admin":false},"repo":{"id":40056303,"name":"pundit","full_name":"beanieboi/pundit","owner":{"login":"beanieboi","id":29251,"avatar_url":"https://avatars.githubusercontent.com/u/29251?v=3","gravatar_id":"","url":"https://api.github.com/users/beanieboi","html_url":"https://github.com/beanieboi","followers_url":"https://api.github.com/users/beanieboi/followers","following_url":"https://api.github.com/users/beanieboi/following{/other_user}","gists_url":"https://api.github.com/users/beanieboi/gists{/gist_id}","starred_url":"https://api.github.com/users/beanieboi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanieboi/subscriptions","organizations_url":"https://api.github.com/users/beanieboi/orgs","repos_url":"https://api.github.com/users/beanieboi/repos","events_url":"https://api.github.com/users/beanieboi/events{/privacy}","received_events_url":"https://api.github.com/users/beanieboi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beanieboi/pundit","description":"Minimal authorization through OO design and pure Ruby classes","fork":true,"url":"https://api.github.com/repos/beanieboi/pundit","forks_url":"https://api.github.com/repos/beanieboi/pundit/forks","keys_url":"https://api.github.com/repos/beanieboi/pundit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beanieboi/pundit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beanieboi/pundit/teams","hooks_url":"https://api.github.com/repos/beanieboi/pundit/hooks","issue_events_url":"https://api.github.com/repos/beanieboi/pundit/issues/events{/number}","events_url":"https://api.github.com/repos/beanieboi/pundit/events","assignees_url":"https://api.github.com/repos/beanieboi/pundit/assignees{/user}","branches_url":"https://api.github.com/repos/beanieboi/pundit/branches{/branch}","tags_url":"https://api.github.com/repos/beanieboi/pundit/tags","blobs_url":"https://api.github.com/repos/beanieboi/pundit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beanieboi/pundit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beanieboi/pundit/git/refs{/sha}","trees_url":"https://api.github.com/repos/beanieboi/pundit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beanieboi/pundit/statuses/{sha}","languages_url":"https://api.github.com/repos/beanieboi/pundit/languages","stargazers_url":"https://api.github.com/repos/beanieboi/pundit/stargazers","contributors_url":"https://api.github.com/repos/beanieboi/pundit/contributors","subscribers_url":"https://api.github.com/repos/beanieboi/pundit/subscribers","subscription_url":"https://api.github.com/repos/beanieboi/pundit/subscription","commits_url":"https://api.github.com/repos/beanieboi/pundit/commits{/sha}","git_commits_url":"https://api.github.com/repos/beanieboi/pundit/git/commits{/sha}","comments_url":"https://api.github.com/repos/beanieboi/pundit/comments{/number}","issue_comment_url":"https://api.github.com/repos/beanieboi/pundit/issues/comments{/number}","contents_url":"https://api.github.com/repos/beanieboi/pundit/contents/{+path}","compare_url":"https://api.github.com/repos/beanieboi/pundit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beanieboi/pundit/merges","archive_url":"https://api.github.com/repos/beanieboi/pundit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beanieboi/pundit/downloads","issues_url":"https://api.github.com/repos/beanieboi/pundit/issues{/number}","pulls_url":"https://api.github.com/repos/beanieboi/pundit/pulls{/number}","milestones_url":"https://api.github.com/repos/beanieboi/pundit/milestones{/number}","notifications_url":"https://api.github.com/repos/beanieboi/pundit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beanieboi/pundit/labels{/name}","releases_url":"https://api.github.com/repos/beanieboi/pundit/releases{/id}","created_at":"2015-08-01T18:34:43Z","updated_at":"2015-08-01T18:34:43Z","pushed_at":"2015-08-01T18:39:19Z","git_url":"git://github.com/beanieboi/pundit.git","ssh_url":"git@github.com:beanieboi/pundit.git","clone_url":"https://github.com/beanieboi/pundit.git","svn_url":"https://github.com/beanieboi/pundit","homepage":null,"size":1248,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"elabs:master","ref":"master","sha":"9bb0f8380243a74bfebccf53e319a0c21fcaee85","user":{"login":"elabs","id":34438,"avatar_url":"https://avatars.githubusercontent.com/u/34438?v=3","gravatar_id":"","url":"https://api.github.com/users/elabs","html_url":"https://github.com/elabs","followers_url":"https://api.github.com/users/elabs/followers","following_url":"https://api.github.com/users/elabs/following{/other_user}","gists_url":"https://api.github.com/users/elabs/gists{/gist_id}","starred_url":"https://api.github.com/users/elabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elabs/subscriptions","organizations_url":"https://api.github.com/users/elabs/orgs","repos_url":"https://api.github.com/users/elabs/repos","events_url":"https://api.github.com/users/elabs/events{/privacy}","received_events_url":"https://api.github.com/users/elabs/received_events","type":"Organization","site_admin":false},"repo":{"id":6529205,"name":"pundit","full_name":"elabs/pundit","owner":{"login":"elabs","id":34438,"avatar_url":"https://avatars.githubusercontent.com/u/34438?v=3","gravatar_id":"","url":"https://api.github.com/users/elabs","html_url":"https://github.com/elabs","followers_url":"https://api.github.com/users/elabs/followers","following_url":"https://api.github.com/users/elabs/following{/other_user}","gists_url":"https://api.github.com/users/elabs/gists{/gist_id}","starred_url":"https://api.github.com/users/elabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elabs/subscriptions","organizations_url":"https://api.github.com/users/elabs/orgs","repos_url":"https://api.github.com/users/elabs/repos","events_url":"https://api.github.com/users/elabs/events{/privacy}","received_events_url":"https://api.github.com/users/elabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elabs/pundit","description":"Minimal authorization through OO design and pure Ruby classes","fork":false,"url":"https://api.github.com/repos/elabs/pundit","forks_url":"https://api.github.com/repos/elabs/pundit/forks","keys_url":"https://api.github.com/repos/elabs/pundit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elabs/pundit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elabs/pundit/teams","hooks_url":"https://api.github.com/repos/elabs/pundit/hooks","issue_events_url":"https://api.github.com/repos/elabs/pundit/issues/events{/number}","events_url":"https://api.github.com/repos/elabs/pundit/events","assignees_url":"https://api.github.com/repos/elabs/pundit/assignees{/user}","branches_url":"https://api.github.com/repos/elabs/pundit/branches{/branch}","tags_url":"https://api.github.com/repos/elabs/pundit/tags","blobs_url":"https://api.github.com/repos/elabs/pundit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elabs/pundit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elabs/pundit/git/refs{/sha}","trees_url":"https://api.github.com/repos/elabs/pundit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elabs/pundit/statuses/{sha}","languages_url":"https://api.github.com/repos/elabs/pundit/languages","stargazers_url":"https://api.github.com/repos/elabs/pundit/stargazers","contributors_url":"https://api.github.com/repos/elabs/pundit/contributors","subscribers_url":"https://api.github.com/repos/elabs/pundit/subscribers","subscription_url":"https://api.github.com/repos/elabs/pundit/subscription","commits_url":"https://api.github.com/repos/elabs/pundit/commits{/sha}","git_commits_url":"https://api.github.com/repos/elabs/pundit/git/commits{/sha}","comments_url":"https://api.github.com/repos/elabs/pundit/comments{/number}","issue_comment_url":"https://api.github.com/repos/elabs/pundit/issues/comments{/number}","contents_url":"https://api.github.com/repos/elabs/pundit/contents/{+path}","compare_url":"https://api.github.com/repos/elabs/pundit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elabs/pundit/merges","archive_url":"https://api.github.com/repos/elabs/pundit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elabs/pundit/downloads","issues_url":"https://api.github.com/repos/elabs/pundit/issues{/number}","pulls_url":"https://api.github.com/repos/elabs/pundit/pulls{/number}","milestones_url":"https://api.github.com/repos/elabs/pundit/milestones{/number}","notifications_url":"https://api.github.com/repos/elabs/pundit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elabs/pundit/labels{/name}","releases_url":"https://api.github.com/repos/elabs/pundit/releases{/id}","created_at":"2012-11-04T09:20:19Z","updated_at":"2015-08-01T03:46:22Z","pushed_at":"2015-07-23T01:59:55Z","git_url":"git://github.com/elabs/pundit.git","ssh_url":"git@github.com:elabs/pundit.git","clone_url":"https://github.com/elabs/pundit.git","svn_url":"https://github.com/elabs/pundit","homepage":null,"size":1248,"stargazers_count":3320,"watchers_count":3320,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":246,"mirror_url":null,"open_issues_count":11,"forks":246,"open_issues":11,"watchers":3320,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elabs/pundit/pulls/304"},"html":{"href":"https://github.com/elabs/pundit/pull/304"},"issue":{"href":"https://api.github.com/repos/elabs/pundit/issues/304"},"comments":{"href":"https://api.github.com/repos/elabs/pundit/issues/304/comments"},"review_comments":{"href":"https://api.github.com/repos/elabs/pundit/pulls/304/comments"},"review_comment":{"href":"https://api.github.com/repos/elabs/pundit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elabs/pundit/pulls/304/commits"},"statuses":{"href":"https://api.github.com/repos/elabs/pundit/statuses/eb903a80479a75da42e62e502be5f0b2b3422119"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}