{"action":"created","comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments/29086462","id":29086462,"diff_hunk":"@@ -301,6 +301,46 @@\n       end\n     end\n \n+    context 'when i18n option is specified' do\n+      before(:each) do\n+        I18n.backend.store_translations(:en, {\n+          activerecord: { attributes: { post: { title: \"Name\" } } }\n+        })","path":"spec/unit/views/components/table_for_spec.rb","position":8,"original_position":8,"commit_id":"599ad7eba4029236ab9ab63b08c2c65484fe21af","original_commit_id":"599ad7eba4029236ab9ab63b08c2c65484fe21af","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":"Indent the right brace the same as the first position after the preceding left parenthesis.","created_at":"2015-04-24T21:14:28Z","updated_at":"2015-04-24T21:14:28Z","html_url":"https://github.com/activeadmin/activeadmin/pull/3909#discussion_r29086462","pull_request_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909","_links":{"self":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments/29086462"},"html":{"href":"https://github.com/activeadmin/activeadmin/pull/3909#discussion_r29086462"},"pull_request":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909"}}},"pull_request":{"url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909","id":34086773,"html_url":"https://github.com/activeadmin/activeadmin/pull/3909","diff_url":"https://github.com/activeadmin/activeadmin/pull/3909.diff","patch_url":"https://github.com/activeadmin/activeadmin/pull/3909.patch","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3909","number":3909,"state":"open","locked":false,"title":"Detect resource class based on AR collection klass in table_for","user":{"login":"kirillplatonov","id":839922,"avatar_url":"https://avatars.githubusercontent.com/u/839922?v=3","gravatar_id":"","url":"https://api.github.com/users/kirillplatonov","html_url":"https://github.com/kirillplatonov","followers_url":"https://api.github.com/users/kirillplatonov/followers","following_url":"https://api.github.com/users/kirillplatonov/following{/other_user}","gists_url":"https://api.github.com/users/kirillplatonov/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillplatonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillplatonov/subscriptions","organizations_url":"https://api.github.com/users/kirillplatonov/orgs","repos_url":"https://api.github.com/users/kirillplatonov/repos","events_url":"https://api.github.com/users/kirillplatonov/events{/privacy}","received_events_url":"https://api.github.com/users/kirillplatonov/received_events","type":"User","site_admin":false},"body":"References to the issue #675 \r\nWill work only with AR collections. I think this is OK for most cases. If you use custom array, you will still need to set i18n option.","created_at":"2015-04-24T21:14:22Z","updated_at":"2015-04-24T21:14:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96c4410346ad9a4f3de5ce3654895f05437ed108","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909/commits","review_comments_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909/comments","review_comment_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3909/comments","statuses_url":"https://api.github.com/repos/activeadmin/activeadmin/statuses/599ad7eba4029236ab9ab63b08c2c65484fe21af","head":{"label":"kirillplatonov:675-add-i18n-to-table_for","ref":"675-add-i18n-to-table_for","sha":"599ad7eba4029236ab9ab63b08c2c65484fe21af","user":{"login":"kirillplatonov","id":839922,"avatar_url":"https://avatars.githubusercontent.com/u/839922?v=3","gravatar_id":"","url":"https://api.github.com/users/kirillplatonov","html_url":"https://github.com/kirillplatonov","followers_url":"https://api.github.com/users/kirillplatonov/followers","following_url":"https://api.github.com/users/kirillplatonov/following{/other_user}","gists_url":"https://api.github.com/users/kirillplatonov/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillplatonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillplatonov/subscriptions","organizations_url":"https://api.github.com/users/kirillplatonov/orgs","repos_url":"https://api.github.com/users/kirillplatonov/repos","events_url":"https://api.github.com/users/kirillplatonov/events{/privacy}","received_events_url":"https://api.github.com/users/kirillplatonov/received_events","type":"User","site_admin":false},"repo":{"id":31303529,"name":"activeadmin","full_name":"kirillplatonov/activeadmin","owner":{"login":"kirillplatonov","id":839922,"avatar_url":"https://avatars.githubusercontent.com/u/839922?v=3","gravatar_id":"","url":"https://api.github.com/users/kirillplatonov","html_url":"https://github.com/kirillplatonov","followers_url":"https://api.github.com/users/kirillplatonov/followers","following_url":"https://api.github.com/users/kirillplatonov/following{/other_user}","gists_url":"https://api.github.com/users/kirillplatonov/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillplatonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillplatonov/subscriptions","organizations_url":"https://api.github.com/users/kirillplatonov/orgs","repos_url":"https://api.github.com/users/kirillplatonov/repos","events_url":"https://api.github.com/users/kirillplatonov/events{/privacy}","received_events_url":"https://api.github.com/users/kirillplatonov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirillplatonov/activeadmin","description":"The administration framework for Ruby on Rails applications.","fork":true,"url":"https://api.github.com/repos/kirillplatonov/activeadmin","forks_url":"https://api.github.com/repos/kirillplatonov/activeadmin/forks","keys_url":"https://api.github.com/repos/kirillplatonov/activeadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirillplatonov/activeadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirillplatonov/activeadmin/teams","hooks_url":"https://api.github.com/repos/kirillplatonov/activeadmin/hooks","issue_events_url":"https://api.github.com/repos/kirillplatonov/activeadmin/issues/events{/number}","events_url":"https://api.github.com/repos/kirillplatonov/activeadmin/events","assignees_url":"https://api.github.com/repos/kirillplatonov/activeadmin/assignees{/user}","branches_url":"https://api.github.com/repos/kirillplatonov/activeadmin/branches{/branch}","tags_url":"https://api.github.com/repos/kirillplatonov/activeadmin/tags","blobs_url":"https://api.github.com/repos/kirillplatonov/activeadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirillplatonov/activeadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirillplatonov/activeadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirillplatonov/activeadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirillplatonov/activeadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/kirillplatonov/activeadmin/languages","stargazers_url":"https://api.github.com/repos/kirillplatonov/activeadmin/stargazers","contributors_url":"https://api.github.com/repos/kirillplatonov/activeadmin/contributors","subscribers_url":"https://api.github.com/repos/kirillplatonov/activeadmin/subscribers","subscription_url":"https://api.github.com/repos/kirillplatonov/activeadmin/subscription","commits_url":"https://api.github.com/repos/kirillplatonov/activeadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirillplatonov/activeadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirillplatonov/activeadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirillplatonov/activeadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirillplatonov/activeadmin/contents/{+path}","compare_url":"https://api.github.com/repos/kirillplatonov/activeadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirillplatonov/activeadmin/merges","archive_url":"https://api.github.com/repos/kirillplatonov/activeadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirillplatonov/activeadmin/downloads","issues_url":"https://api.github.com/repos/kirillplatonov/activeadmin/issues{/number}","pulls_url":"https://api.github.com/repos/kirillplatonov/activeadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/kirillplatonov/activeadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/kirillplatonov/activeadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirillplatonov/activeadmin/labels{/name}","releases_url":"https://api.github.com/repos/kirillplatonov/activeadmin/releases{/id}","created_at":"2015-02-25T08:11:43Z","updated_at":"2015-04-24T20:14:04Z","pushed_at":"2015-04-24T21:11:15Z","git_url":"git://github.com/kirillplatonov/activeadmin.git","ssh_url":"git@github.com:kirillplatonov/activeadmin.git","clone_url":"https://github.com/kirillplatonov/activeadmin.git","svn_url":"https://github.com/kirillplatonov/activeadmin","homepage":"activeadmin.info","size":7147,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"activeadmin:master","ref":"master","sha":"c6347ea2429d0f052e167ba472a35f1d1061124e","user":{"login":"activeadmin","id":814570,"avatar_url":"https://avatars.githubusercontent.com/u/814570?v=3","gravatar_id":"","url":"https://api.github.com/users/activeadmin","html_url":"https://github.com/activeadmin","followers_url":"https://api.github.com/users/activeadmin/followers","following_url":"https://api.github.com/users/activeadmin/following{/other_user}","gists_url":"https://api.github.com/users/activeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/activeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeadmin/subscriptions","organizations_url":"https://api.github.com/users/activeadmin/orgs","repos_url":"https://api.github.com/users/activeadmin/repos","events_url":"https://api.github.com/users/activeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/activeadmin/received_events","type":"Organization","site_admin":false},"repo":{"id":611921,"name":"activeadmin","full_name":"activeadmin/activeadmin","owner":{"login":"activeadmin","id":814570,"avatar_url":"https://avatars.githubusercontent.com/u/814570?v=3","gravatar_id":"","url":"https://api.github.com/users/activeadmin","html_url":"https://github.com/activeadmin","followers_url":"https://api.github.com/users/activeadmin/followers","following_url":"https://api.github.com/users/activeadmin/following{/other_user}","gists_url":"https://api.github.com/users/activeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/activeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeadmin/subscriptions","organizations_url":"https://api.github.com/users/activeadmin/orgs","repos_url":"https://api.github.com/users/activeadmin/repos","events_url":"https://api.github.com/users/activeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/activeadmin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeadmin/activeadmin","description":"The administration framework for Ruby on Rails applications.","fork":false,"url":"https://api.github.com/repos/activeadmin/activeadmin","forks_url":"https://api.github.com/repos/activeadmin/activeadmin/forks","keys_url":"https://api.github.com/repos/activeadmin/activeadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeadmin/activeadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeadmin/activeadmin/teams","hooks_url":"https://api.github.com/repos/activeadmin/activeadmin/hooks","issue_events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/events{/number}","events_url":"https://api.github.com/repos/activeadmin/activeadmin/events","assignees_url":"https://api.github.com/repos/activeadmin/activeadmin/assignees{/user}","branches_url":"https://api.github.com/repos/activeadmin/activeadmin/branches{/branch}","tags_url":"https://api.github.com/repos/activeadmin/activeadmin/tags","blobs_url":"https://api.github.com/repos/activeadmin/activeadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeadmin/activeadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeadmin/activeadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeadmin/activeadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeadmin/activeadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/activeadmin/activeadmin/languages","stargazers_url":"https://api.github.com/repos/activeadmin/activeadmin/stargazers","contributors_url":"https://api.github.com/repos/activeadmin/activeadmin/contributors","subscribers_url":"https://api.github.com/repos/activeadmin/activeadmin/subscribers","subscription_url":"https://api.github.com/repos/activeadmin/activeadmin/subscription","commits_url":"https://api.github.com/repos/activeadmin/activeadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeadmin/activeadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeadmin/activeadmin/contents/{+path}","compare_url":"https://api.github.com/repos/activeadmin/activeadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeadmin/activeadmin/merges","archive_url":"https://api.github.com/repos/activeadmin/activeadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeadmin/activeadmin/downloads","issues_url":"https://api.github.com/repos/activeadmin/activeadmin/issues{/number}","pulls_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/activeadmin/activeadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/activeadmin/activeadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/labels{/name}","releases_url":"https://api.github.com/repos/activeadmin/activeadmin/releases{/id}","created_at":"2010-04-15T14:26:03Z","updated_at":"2015-04-24T08:36:51Z","pushed_at":"2015-04-24T21:14:22Z","git_url":"git://github.com/activeadmin/activeadmin.git","ssh_url":"git@github.com:activeadmin/activeadmin.git","clone_url":"https://github.com/activeadmin/activeadmin.git","svn_url":"https://github.com/activeadmin/activeadmin","homepage":"activeadmin.info","size":18935,"stargazers_count":5880,"watchers_count":5880,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":2085,"mirror_url":null,"open_issues_count":179,"forks":2085,"open_issues":179,"watchers":5880,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909"},"html":{"href":"https://github.com/activeadmin/activeadmin/pull/3909"},"issue":{"href":"https://api.github.com/repos/activeadmin/activeadmin/issues/3909"},"comments":{"href":"https://api.github.com/repos/activeadmin/activeadmin/issues/3909/comments"},"review_comments":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909/comments"},"review_comment":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3909/commits"},"statuses":{"href":"https://api.github.com/repos/activeadmin/activeadmin/statuses/599ad7eba4029236ab9ab63b08c2c65484fe21af"}}}}