{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/26295417","id":26295417,"diff_hunk":"@@ -460,6 +463,10 @@ def collection_without_template\n       end\n     end\n \n+    def wrap_collection(result)","path":"actionview/lib/action_view/renderer/partial_renderer.rb","position":16,"original_position":16,"commit_id":"5818b5a0814a08c31082e875cb13b796fbed1973","original_commit_id":"5818b5a0814a08c31082e875cb13b796fbed1973","user":{"login":"kaspth","id":350807,"avatar_url":"https://avatars.githubusercontent.com/u/350807?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false},"body":"I'd prefer more descriptive names here.\r\n\r\nWhat about: `def wrap_collection_in_layout(rendered_collection)`?","created_at":"2015-03-12T11:53:04Z","updated_at":"2015-03-12T11:53:04Z","html_url":"https://github.com/rails/rails/pull/17524#discussion_r26295417","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/17524","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/26295417"},"html":{"href":"https://github.com/rails/rails/pull/17524#discussion_r26295417"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/17524"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/17524","id":23918011,"html_url":"https://github.com/rails/rails/pull/17524","diff_url":"https://github.com/rails/rails/pull/17524.diff","patch_url":"https://github.com/rails/rails/pull/17524.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/17524","number":17524,"state":"open","locked":false,"title":"Add collection layout to collection render","user":{"login":"Krule","id":38747,"avatar_url":"https://avatars.githubusercontent.com/u/38747?v=3","gravatar_id":"","url":"https://api.github.com/users/Krule","html_url":"https://github.com/Krule","followers_url":"https://api.github.com/users/Krule/followers","following_url":"https://api.github.com/users/Krule/following{/other_user}","gists_url":"https://api.github.com/users/Krule/gists{/gist_id}","starred_url":"https://api.github.com/users/Krule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krule/subscriptions","organizations_url":"https://api.github.com/users/Krule/orgs","repos_url":"https://api.github.com/users/Krule/repos","events_url":"https://api.github.com/users/Krule/events{/privacy}","received_events_url":"https://api.github.com/users/Krule/received_events","type":"User","site_admin":false},"body":"This allows for cleaner way to wrap layouts around collections. It's a very small addition which should allow a bit cleaner code.\r\n\r\nOriginated here: http://stackoverflow.com/questions/25310970/rails-how-to-render-a-layout-around-a-collection ","created_at":"2014-11-05T16:28:40Z","updated_at":"2015-03-12T11:53:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e180fc2c68e6be74f719c4e25ba5fc832f53131","assignee":null,"milestone":{"url":"https://api.github.com/repos/rails/rails/milestones/34","html_url":"https://github.com/rails/rails/milestones/5.0.0","labels_url":"https://api.github.com/repos/rails/rails/milestones/34/labels","id":665192,"number":34,"title":"5.0.0","description":null,"creator":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"open_issues":99,"closed_issues":81,"state":"open","created_at":"2014-05-21T00:58:22Z","updated_at":"2015-03-12T07:26:01Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/rails/rails/pulls/17524/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/17524/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/17524/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/5818b5a0814a08c31082e875cb13b796fbed1973","head":{"label":"Krule:collection_layout","ref":"collection_layout","sha":"5818b5a0814a08c31082e875cb13b796fbed1973","user":{"login":"Krule","id":38747,"avatar_url":"https://avatars.githubusercontent.com/u/38747?v=3","gravatar_id":"","url":"https://api.github.com/users/Krule","html_url":"https://github.com/Krule","followers_url":"https://api.github.com/users/Krule/followers","following_url":"https://api.github.com/users/Krule/following{/other_user}","gists_url":"https://api.github.com/users/Krule/gists{/gist_id}","starred_url":"https://api.github.com/users/Krule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krule/subscriptions","organizations_url":"https://api.github.com/users/Krule/orgs","repos_url":"https://api.github.com/users/Krule/repos","events_url":"https://api.github.com/users/Krule/events{/privacy}","received_events_url":"https://api.github.com/users/Krule/received_events","type":"User","site_admin":false},"repo":{"id":26116899,"name":"rails","full_name":"Krule/rails","owner":{"login":"Krule","id":38747,"avatar_url":"https://avatars.githubusercontent.com/u/38747?v=3","gravatar_id":"","url":"https://api.github.com/users/Krule","html_url":"https://github.com/Krule","followers_url":"https://api.github.com/users/Krule/followers","following_url":"https://api.github.com/users/Krule/following{/other_user}","gists_url":"https://api.github.com/users/Krule/gists{/gist_id}","starred_url":"https://api.github.com/users/Krule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krule/subscriptions","organizations_url":"https://api.github.com/users/Krule/orgs","repos_url":"https://api.github.com/users/Krule/repos","events_url":"https://api.github.com/users/Krule/events{/privacy}","received_events_url":"https://api.github.com/users/Krule/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Krule/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/Krule/rails","forks_url":"https://api.github.com/repos/Krule/rails/forks","keys_url":"https://api.github.com/repos/Krule/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Krule/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Krule/rails/teams","hooks_url":"https://api.github.com/repos/Krule/rails/hooks","issue_events_url":"https://api.github.com/repos/Krule/rails/issues/events{/number}","events_url":"https://api.github.com/repos/Krule/rails/events","assignees_url":"https://api.github.com/repos/Krule/rails/assignees{/user}","branches_url":"https://api.github.com/repos/Krule/rails/branches{/branch}","tags_url":"https://api.github.com/repos/Krule/rails/tags","blobs_url":"https://api.github.com/repos/Krule/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Krule/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Krule/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/Krule/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Krule/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/Krule/rails/languages","stargazers_url":"https://api.github.com/repos/Krule/rails/stargazers","contributors_url":"https://api.github.com/repos/Krule/rails/contributors","subscribers_url":"https://api.github.com/repos/Krule/rails/subscribers","subscription_url":"https://api.github.com/repos/Krule/rails/subscription","commits_url":"https://api.github.com/repos/Krule/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/Krule/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/Krule/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/Krule/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/Krule/rails/contents/{+path}","compare_url":"https://api.github.com/repos/Krule/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Krule/rails/merges","archive_url":"https://api.github.com/repos/Krule/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Krule/rails/downloads","issues_url":"https://api.github.com/repos/Krule/rails/issues{/number}","pulls_url":"https://api.github.com/repos/Krule/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/Krule/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/Krule/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Krule/rails/labels{/name}","releases_url":"https://api.github.com/repos/Krule/rails/releases{/id}","created_at":"2014-11-03T12:09:06Z","updated_at":"2014-11-05T15:57:10Z","pushed_at":"2014-11-11T19:36:53Z","git_url":"git://github.com/Krule/rails.git","ssh_url":"git@github.com:Krule/rails.git","clone_url":"https://github.com/Krule/rails.git","svn_url":"https://github.com/Krule/rails","homepage":"http://rubyonrails.org","size":121694,"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":"rails:master","ref":"master","sha":"46f172798e56ba5383ba5305e2cce5aad02e8e30","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-03-12T11:45:17Z","pushed_at":"2015-03-12T08:55:01Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":388791,"stargazers_count":25244,"watchers_count":25244,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9872,"mirror_url":null,"open_issues_count":719,"forks":9872,"open_issues":719,"watchers":25244,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/17524"},"html":{"href":"https://github.com/rails/rails/pull/17524"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/17524"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/17524/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/17524/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/17524/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/5818b5a0814a08c31082e875cb13b796fbed1973"}}}}