{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments/50634240","id":50634240,"diff_hunk":"@@ -14,3 +18,30 @@\n end\n \n WebMock.disable_net_connect!(allow_localhost: true, allow: \"percy.io\")\n+\n+class MockDashboard < Administrate::BaseDashboard\n+  ATTRIBUTE_TYPES = {\n+    name: Administrate::Field::String,\n+    email: Administrate::Field::Email,\n+    phone: Administrate::Field::Number,\n+  }\n+end\n+\n+class DashboardWithAnArrayOfScopes < Administrate::BaseDashboard\n+  ATTRIBUTE_TYPES = {\n+    name: Administrate::Field::String,\n+  }\n+\n+  COLLECTION_SCOPES = [:active, :old, \"with_argument(3)\", \"idle\"]\n+end\n+\n+class DashboardWithAHashOfScopes < Administrate::BaseDashboard\n+  ATTRIBUTE_TYPES = {\n+    name: Administrate::Field::String,\n+  }\n+\n+  COLLECTION_SCOPES = {\n+    status: [:active, :inactive, \"idle\"],\n+    other: [:last_week, :old, \"with_argument(3)\",],","path":"spec/spec_helper.rb","position":37,"original_position":37,"commit_id":"49795c49af09cb109c9b9a470df6b229264993d8","original_commit_id":"49795c49af09cb109c9b9a470df6b229264993d8","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Avoid comma after the last item of an array, unless each item is on its own line.","created_at":"2016-01-24T11:48:19Z","updated_at":"2016-01-24T11:48:19Z","html_url":"https://github.com/thoughtbot/administrate/pull/423#discussion_r50634240","pull_request_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/423","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments/50634240"},"html":{"href":"https://github.com/thoughtbot/administrate/pull/423#discussion_r50634240"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/423"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/administrate/pulls/423","id":56576828,"html_url":"https://github.com/thoughtbot/administrate/pull/423","diff_url":"https://github.com/thoughtbot/administrate/pull/423.diff","patch_url":"https://github.com/thoughtbot/administrate/pull/423.patch","issue_url":"https://api.github.com/repos/thoughtbot/administrate/issues/423","number":423,"state":"open","locked":false,"title":"Integration with Globalize","user":{"login":"nando","id":9823,"avatar_url":"https://avatars.githubusercontent.com/u/9823?v=3","gravatar_id":"","url":"https://api.github.com/users/nando","html_url":"https://github.com/nando","followers_url":"https://api.github.com/users/nando/followers","following_url":"https://api.github.com/users/nando/following{/other_user}","gists_url":"https://api.github.com/users/nando/gists{/gist_id}","starred_url":"https://api.github.com/users/nando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nando/subscriptions","organizations_url":"https://api.github.com/users/nando/orgs","repos_url":"https://api.github.com/users/nando/repos","events_url":"https://api.github.com/users/nando/events{/privacy}","received_events_url":"https://api.github.com/users/nando/received_events","type":"User","site_admin":false},"body":"Problem\r\nIf you are using Globalize to translate a Dashboard's resource you will only have access to the default locale values.\r\n\r\nSolution\r\nIf a model responds to the \".translates?\" class method and it's true then links to the other locales present in I18n.available_locales will be shown in the index, show and edit views.","created_at":"2016-01-20T08:23:53Z","updated_at":"2016-01-24T11:48:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52e5b06dc8728f0a792f1b81b77c88ba16857f26","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/423/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/423/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/issues/423/comments","statuses_url":"https://api.github.com/repos/thoughtbot/administrate/statuses/49795c49af09cb109c9b9a470df6b229264993d8","head":{"label":"nando:fgs_globalize_integration","ref":"fgs_globalize_integration","sha":"49795c49af09cb109c9b9a470df6b229264993d8","user":{"login":"nando","id":9823,"avatar_url":"https://avatars.githubusercontent.com/u/9823?v=3","gravatar_id":"","url":"https://api.github.com/users/nando","html_url":"https://github.com/nando","followers_url":"https://api.github.com/users/nando/followers","following_url":"https://api.github.com/users/nando/following{/other_user}","gists_url":"https://api.github.com/users/nando/gists{/gist_id}","starred_url":"https://api.github.com/users/nando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nando/subscriptions","organizations_url":"https://api.github.com/users/nando/orgs","repos_url":"https://api.github.com/users/nando/repos","events_url":"https://api.github.com/users/nando/events{/privacy}","received_events_url":"https://api.github.com/users/nando/received_events","type":"User","site_admin":false},"repo":{"id":46931632,"name":"administrate","full_name":"nando/administrate","owner":{"login":"nando","id":9823,"avatar_url":"https://avatars.githubusercontent.com/u/9823?v=3","gravatar_id":"","url":"https://api.github.com/users/nando","html_url":"https://github.com/nando","followers_url":"https://api.github.com/users/nando/followers","following_url":"https://api.github.com/users/nando/following{/other_user}","gists_url":"https://api.github.com/users/nando/gists{/gist_id}","starred_url":"https://api.github.com/users/nando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nando/subscriptions","organizations_url":"https://api.github.com/users/nando/orgs","repos_url":"https://api.github.com/users/nando/repos","events_url":"https://api.github.com/users/nando/events{/privacy}","received_events_url":"https://api.github.com/users/nando/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nando/administrate","description":"A Rails engine that helps you put together a super-flexible admin dashboard.","fork":true,"url":"https://api.github.com/repos/nando/administrate","forks_url":"https://api.github.com/repos/nando/administrate/forks","keys_url":"https://api.github.com/repos/nando/administrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nando/administrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nando/administrate/teams","hooks_url":"https://api.github.com/repos/nando/administrate/hooks","issue_events_url":"https://api.github.com/repos/nando/administrate/issues/events{/number}","events_url":"https://api.github.com/repos/nando/administrate/events","assignees_url":"https://api.github.com/repos/nando/administrate/assignees{/user}","branches_url":"https://api.github.com/repos/nando/administrate/branches{/branch}","tags_url":"https://api.github.com/repos/nando/administrate/tags","blobs_url":"https://api.github.com/repos/nando/administrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nando/administrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nando/administrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/nando/administrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nando/administrate/statuses/{sha}","languages_url":"https://api.github.com/repos/nando/administrate/languages","stargazers_url":"https://api.github.com/repos/nando/administrate/stargazers","contributors_url":"https://api.github.com/repos/nando/administrate/contributors","subscribers_url":"https://api.github.com/repos/nando/administrate/subscribers","subscription_url":"https://api.github.com/repos/nando/administrate/subscription","commits_url":"https://api.github.com/repos/nando/administrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/nando/administrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/nando/administrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/nando/administrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/nando/administrate/contents/{+path}","compare_url":"https://api.github.com/repos/nando/administrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nando/administrate/merges","archive_url":"https://api.github.com/repos/nando/administrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nando/administrate/downloads","issues_url":"https://api.github.com/repos/nando/administrate/issues{/number}","pulls_url":"https://api.github.com/repos/nando/administrate/pulls{/number}","milestones_url":"https://api.github.com/repos/nando/administrate/milestones{/number}","notifications_url":"https://api.github.com/repos/nando/administrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nando/administrate/labels{/name}","releases_url":"https://api.github.com/repos/nando/administrate/releases{/id}","deployments_url":"https://api.github.com/repos/nando/administrate/deployments","created_at":"2015-11-26T14:37:26Z","updated_at":"2016-01-18T11:44:31Z","pushed_at":"2016-01-24T11:48:02Z","git_url":"git://github.com/nando/administrate.git","ssh_url":"git@github.com:nando/administrate.git","clone_url":"https://github.com/nando/administrate.git","svn_url":"https://github.com/nando/administrate","homepage":"http://administrate-prototype.herokuapp.com/admin","size":710,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"thoughtbot:master","ref":"master","sha":"1024283df83795be459f82aeafd45b982ed1ec6a","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.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://avatars.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":"2016-01-24T11:28:27Z","pushed_at":"2016-01-24T11:48:03Z","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":2155,"watchers_count":2155,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":104,"forks":164,"open_issues":104,"watchers":2155,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/423"},"html":{"href":"https://github.com/thoughtbot/administrate/pull/423"},"issue":{"href":"https://api.github.com/repos/thoughtbot/administrate/issues/423"},"comments":{"href":"https://api.github.com/repos/thoughtbot/administrate/issues/423/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/423/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/423/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/administrate/statuses/49795c49af09cb109c9b9a470df6b229264993d8"}}}}