{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments/121684364","pull_request_review_id":43730090,"id":121684364,"diff_hunk":"@@ -60,6 +60,38 @@ module Blog; class Post; end; end\n     end\n   end\n \n+  describe '#resource_scope' do\n+    it 'defaults to model default scope when no override defined' do","path":"spec/lib/administrate/resource_resolver_spec.rb","position":5,"original_position":5,"commit_id":"6bdbf4530522e2d286296d923a27d9100ae33379","original_commit_id":"6bdbf4530522e2d286296d923a27d9100ae33379","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2017-06-13T13:54:34Z","updated_at":"2017-06-13T13:54:34Z","html_url":"https://github.com/thoughtbot/administrate/pull/910#discussion_r121684364","pull_request_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/910","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments/121684364"},"html":{"href":"https://github.com/thoughtbot/administrate/pull/910#discussion_r121684364"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/910"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/administrate/pulls/910","id":125369637,"html_url":"https://github.com/thoughtbot/administrate/pull/910","diff_url":"https://github.com/thoughtbot/administrate/pull/910.diff","patch_url":"https://github.com/thoughtbot/administrate/pull/910.patch","issue_url":"https://api.github.com/repos/thoughtbot/administrate/issues/910","number":910,"state":"open","locked":false,"title":"Allow custom scope for dashboard resource","user":{"login":"bobf","id":18470,"avatar_url":"https://avatars0.githubusercontent.com/u/18470?v=3","gravatar_id":"","url":"https://api.github.com/users/bobf","html_url":"https://github.com/bobf","followers_url":"https://api.github.com/users/bobf/followers","following_url":"https://api.github.com/users/bobf/following{/other_user}","gists_url":"https://api.github.com/users/bobf/gists{/gist_id}","starred_url":"https://api.github.com/users/bobf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobf/subscriptions","organizations_url":"https://api.github.com/users/bobf/orgs","repos_url":"https://api.github.com/users/bobf/repos","events_url":"https://api.github.com/users/bobf/events{/privacy}","received_events_url":"https://api.github.com/users/bobf/received_events","type":"User","site_admin":false},"body":"Based on @nickcharlton 's original branch here:\r\nhttps://github.com/thoughtbot/administrate/tree/nc-allow-overriding-resource-class","created_at":"2017-06-13T13:54:14Z","updated_at":"2017-06-13T13:54:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95d6a88f122253acd0e06e04559b8f6eedcdab85","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/910/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/910/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/issues/910/comments","statuses_url":"https://api.github.com/repos/thoughtbot/administrate/statuses/6bdbf4530522e2d286296d923a27d9100ae33379","head":{"label":"bobf:default-resource-scope","ref":"default-resource-scope","sha":"6bdbf4530522e2d286296d923a27d9100ae33379","user":{"login":"bobf","id":18470,"avatar_url":"https://avatars0.githubusercontent.com/u/18470?v=3","gravatar_id":"","url":"https://api.github.com/users/bobf","html_url":"https://github.com/bobf","followers_url":"https://api.github.com/users/bobf/followers","following_url":"https://api.github.com/users/bobf/following{/other_user}","gists_url":"https://api.github.com/users/bobf/gists{/gist_id}","starred_url":"https://api.github.com/users/bobf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobf/subscriptions","organizations_url":"https://api.github.com/users/bobf/orgs","repos_url":"https://api.github.com/users/bobf/repos","events_url":"https://api.github.com/users/bobf/events{/privacy}","received_events_url":"https://api.github.com/users/bobf/received_events","type":"User","site_admin":false},"repo":{"id":88998053,"name":"administrate","full_name":"bobf/administrate","owner":{"login":"bobf","id":18470,"avatar_url":"https://avatars0.githubusercontent.com/u/18470?v=3","gravatar_id":"","url":"https://api.github.com/users/bobf","html_url":"https://github.com/bobf","followers_url":"https://api.github.com/users/bobf/followers","following_url":"https://api.github.com/users/bobf/following{/other_user}","gists_url":"https://api.github.com/users/bobf/gists{/gist_id}","starred_url":"https://api.github.com/users/bobf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobf/subscriptions","organizations_url":"https://api.github.com/users/bobf/orgs","repos_url":"https://api.github.com/users/bobf/repos","events_url":"https://api.github.com/users/bobf/events{/privacy}","received_events_url":"https://api.github.com/users/bobf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bobf/administrate","description":"A Rails engine that helps you put together a super-flexible admin dashboard.","fork":true,"url":"https://api.github.com/repos/bobf/administrate","forks_url":"https://api.github.com/repos/bobf/administrate/forks","keys_url":"https://api.github.com/repos/bobf/administrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobf/administrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobf/administrate/teams","hooks_url":"https://api.github.com/repos/bobf/administrate/hooks","issue_events_url":"https://api.github.com/repos/bobf/administrate/issues/events{/number}","events_url":"https://api.github.com/repos/bobf/administrate/events","assignees_url":"https://api.github.com/repos/bobf/administrate/assignees{/user}","branches_url":"https://api.github.com/repos/bobf/administrate/branches{/branch}","tags_url":"https://api.github.com/repos/bobf/administrate/tags","blobs_url":"https://api.github.com/repos/bobf/administrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobf/administrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobf/administrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobf/administrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobf/administrate/statuses/{sha}","languages_url":"https://api.github.com/repos/bobf/administrate/languages","stargazers_url":"https://api.github.com/repos/bobf/administrate/stargazers","contributors_url":"https://api.github.com/repos/bobf/administrate/contributors","subscribers_url":"https://api.github.com/repos/bobf/administrate/subscribers","subscription_url":"https://api.github.com/repos/bobf/administrate/subscription","commits_url":"https://api.github.com/repos/bobf/administrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobf/administrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobf/administrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobf/administrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobf/administrate/contents/{+path}","compare_url":"https://api.github.com/repos/bobf/administrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobf/administrate/merges","archive_url":"https://api.github.com/repos/bobf/administrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobf/administrate/downloads","issues_url":"https://api.github.com/repos/bobf/administrate/issues{/number}","pulls_url":"https://api.github.com/repos/bobf/administrate/pulls{/number}","milestones_url":"https://api.github.com/repos/bobf/administrate/milestones{/number}","notifications_url":"https://api.github.com/repos/bobf/administrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobf/administrate/labels{/name}","releases_url":"https://api.github.com/repos/bobf/administrate/releases{/id}","deployments_url":"https://api.github.com/repos/bobf/administrate/deployments","created_at":"2017-04-21T15:29:17Z","updated_at":"2017-04-21T15:29:19Z","pushed_at":"2017-06-13T12:35:58Z","git_url":"git://github.com/bobf/administrate.git","ssh_url":"git@github.com:bobf/administrate.git","clone_url":"https://github.com/bobf/administrate.git","svn_url":"https://github.com/bobf/administrate","homepage":"http://administrate-prototype.herokuapp.com/admin","size":1033,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"thoughtbot:master","ref":"master","sha":"a34ee154d9b7af1a6fe29ce14671f6c66398210c","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars0.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":33739333,"name":"administrate","full_name":"thoughtbot/administrate","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars0.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/administrate","description":"A Rails engine that helps you put together a super-flexible admin dashboard.","fork":false,"url":"https://api.github.com/repos/thoughtbot/administrate","forks_url":"https://api.github.com/repos/thoughtbot/administrate/forks","keys_url":"https://api.github.com/repos/thoughtbot/administrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/administrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/administrate/teams","hooks_url":"https://api.github.com/repos/thoughtbot/administrate/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/administrate/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/administrate/events","assignees_url":"https://api.github.com/repos/thoughtbot/administrate/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/administrate/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/administrate/tags","blobs_url":"https://api.github.com/repos/thoughtbot/administrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/administrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/administrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/administrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/administrate/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/administrate/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/administrate/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/administrate/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/administrate/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/administrate/subscription","commits_url":"https://api.github.com/repos/thoughtbot/administrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/administrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/administrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/administrate/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/administrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/administrate/merges","archive_url":"https://api.github.com/repos/thoughtbot/administrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/administrate/downloads","issues_url":"https://api.github.com/repos/thoughtbot/administrate/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/administrate/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/administrate/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/administrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/administrate/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/administrate/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/administrate/deployments","created_at":"2015-04-10T16:43:02Z","updated_at":"2017-06-13T07:46:03Z","pushed_at":"2017-06-13T13:54:15Z","git_url":"git://github.com/thoughtbot/administrate.git","ssh_url":"git@github.com:thoughtbot/administrate.git","clone_url":"https://github.com/thoughtbot/administrate.git","svn_url":"https://github.com/thoughtbot/administrate","homepage":"http://administrate-prototype.herokuapp.com/admin","size":1027,"stargazers_count":3374,"watchers_count":3374,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":496,"mirror_url":null,"open_issues_count":141,"forks":496,"open_issues":141,"watchers":3374,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/910"},"html":{"href":"https://github.com/thoughtbot/administrate/pull/910"},"issue":{"href":"https://api.github.com/repos/thoughtbot/administrate/issues/910"},"comments":{"href":"https://api.github.com/repos/thoughtbot/administrate/issues/910/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/910/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/910/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/administrate/statuses/6bdbf4530522e2d286296d923a27d9100ae33379"}}}}
{"actor":{"display_login":"houndci-bot"}}