{"action":"reopened","number":20781,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/20781","id":39215329,"html_url":"https://github.com/rails/rails/pull/20781","diff_url":"https://github.com/rails/rails/pull/20781.diff","patch_url":"https://github.com/rails/rails/pull/20781.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/20781","number":20781,"state":"open","locked":false,"title":"Support explicit defintion of resouce name for collection caching.","user":{"login":"dubek","id":9211,"avatar_url":"https://avatars.githubusercontent.com/u/9211?v=3","gravatar_id":"","url":"https://api.github.com/users/dubek","html_url":"https://github.com/dubek","followers_url":"https://api.github.com/users/dubek/followers","following_url":"https://api.github.com/users/dubek/following{/other_user}","gists_url":"https://api.github.com/users/dubek/gists{/gist_id}","starred_url":"https://api.github.com/users/dubek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubek/subscriptions","organizations_url":"https://api.github.com/users/dubek/orgs","repos_url":"https://api.github.com/users/dubek/repos","events_url":"https://api.github.com/users/dubek/events{/privacy}","received_events_url":"https://api.github.com/users/dubek/received_events","type":"User","site_admin":false},"body":"If a template includes `# Template Collection: ...` anywhere in its\r\nsource, that name will be used as the cache name for the partial that is\r\nrendered for the collection.\r\n\r\nThis allows users to enable collection caching even if the template\r\ndoesn't start with `<% cache ... do %>`.\r\n\r\nMoreover, the `# Template Collection: ...` notation is recognized in all\r\ntemplate types (and template types other than ERB can define a\r\nresource_cache_call_pattern method to allow the `cache ... do` pattern\r\nto be recognized too).\r\n\r\n\r\nThis PR follows a discussion on #20417 .\r\n\r\n@kaspth - appreciate your comments.","created_at":"2015-07-05T02:42:11Z","updated_at":"2015-07-08T20:15:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22b41cadb6b2d61a3bc7895a4734937930c1d4ec","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":95,"closed_issues":118,"state":"open","created_at":"2014-05-21T00:58:22Z","updated_at":"2015-07-08T20:15:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/rails/rails/pulls/20781/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/20781/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/20781/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/5a41d00455f67a03e3cb77cd89c3b710a7c389d0","head":{"label":"dubek:collection-cache-explicit","ref":"collection-cache-explicit","sha":"5a41d00455f67a03e3cb77cd89c3b710a7c389d0","user":{"login":"dubek","id":9211,"avatar_url":"https://avatars.githubusercontent.com/u/9211?v=3","gravatar_id":"","url":"https://api.github.com/users/dubek","html_url":"https://github.com/dubek","followers_url":"https://api.github.com/users/dubek/followers","following_url":"https://api.github.com/users/dubek/following{/other_user}","gists_url":"https://api.github.com/users/dubek/gists{/gist_id}","starred_url":"https://api.github.com/users/dubek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubek/subscriptions","organizations_url":"https://api.github.com/users/dubek/orgs","repos_url":"https://api.github.com/users/dubek/repos","events_url":"https://api.github.com/users/dubek/events{/privacy}","received_events_url":"https://api.github.com/users/dubek/received_events","type":"User","site_admin":false},"repo":{"id":36525491,"name":"rails","full_name":"dubek/rails","owner":{"login":"dubek","id":9211,"avatar_url":"https://avatars.githubusercontent.com/u/9211?v=3","gravatar_id":"","url":"https://api.github.com/users/dubek","html_url":"https://github.com/dubek","followers_url":"https://api.github.com/users/dubek/followers","following_url":"https://api.github.com/users/dubek/following{/other_user}","gists_url":"https://api.github.com/users/dubek/gists{/gist_id}","starred_url":"https://api.github.com/users/dubek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubek/subscriptions","organizations_url":"https://api.github.com/users/dubek/orgs","repos_url":"https://api.github.com/users/dubek/repos","events_url":"https://api.github.com/users/dubek/events{/privacy}","received_events_url":"https://api.github.com/users/dubek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dubek/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/dubek/rails","forks_url":"https://api.github.com/repos/dubek/rails/forks","keys_url":"https://api.github.com/repos/dubek/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dubek/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dubek/rails/teams","hooks_url":"https://api.github.com/repos/dubek/rails/hooks","issue_events_url":"https://api.github.com/repos/dubek/rails/issues/events{/number}","events_url":"https://api.github.com/repos/dubek/rails/events","assignees_url":"https://api.github.com/repos/dubek/rails/assignees{/user}","branches_url":"https://api.github.com/repos/dubek/rails/branches{/branch}","tags_url":"https://api.github.com/repos/dubek/rails/tags","blobs_url":"https://api.github.com/repos/dubek/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dubek/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dubek/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/dubek/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dubek/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/dubek/rails/languages","stargazers_url":"https://api.github.com/repos/dubek/rails/stargazers","contributors_url":"https://api.github.com/repos/dubek/rails/contributors","subscribers_url":"https://api.github.com/repos/dubek/rails/subscribers","subscription_url":"https://api.github.com/repos/dubek/rails/subscription","commits_url":"https://api.github.com/repos/dubek/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/dubek/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/dubek/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/dubek/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/dubek/rails/contents/{+path}","compare_url":"https://api.github.com/repos/dubek/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dubek/rails/merges","archive_url":"https://api.github.com/repos/dubek/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dubek/rails/downloads","issues_url":"https://api.github.com/repos/dubek/rails/issues{/number}","pulls_url":"https://api.github.com/repos/dubek/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/dubek/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/dubek/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dubek/rails/labels{/name}","releases_url":"https://api.github.com/repos/dubek/rails/releases{/id}","created_at":"2015-05-29T19:46:43Z","updated_at":"2015-05-29T19:47:11Z","pushed_at":"2015-07-07T20:58:55Z","git_url":"git://github.com/dubek/rails.git","ssh_url":"git@github.com:dubek/rails.git","clone_url":"https://github.com/dubek/rails.git","svn_url":"https://github.com/dubek/rails","homepage":"http://rubyonrails.org","size":144211,"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":"062cbd18ddbf6ef48c9a9a2a69081737aebbee89","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-07-08T20:05:04Z","pushed_at":"2015-07-08T19:37:28Z","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":427602,"stargazers_count":26839,"watchers_count":26839,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10710,"mirror_url":null,"open_issues_count":836,"forks":10710,"open_issues":836,"watchers":26839,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/20781"},"html":{"href":"https://github.com/rails/rails/pull/20781"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/20781"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/20781/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/20781/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/20781/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/5a41d00455f67a03e3cb77cd89c3b710a7c389d0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":4,"commits":1,"additions":47,"deletions":9,"changed_files":5}}