{"action":"opened","number":295,"pull_request":{"url":"https://api.github.com/repos/collectiveidea/audited/pulls/295","id":85973487,"html_url":"https://github.com/collectiveidea/audited/pull/295","diff_url":"https://github.com/collectiveidea/audited/pull/295.diff","patch_url":"https://github.com/collectiveidea/audited/pull/295.patch","issue_url":"https://api.github.com/repos/collectiveidea/audited/issues/295","number":295,"state":"open","locked":false,"title":"Set created_at as collection cache key","user":{"login":"bmedenwald","id":517871,"avatar_url":"https://avatars.githubusercontent.com/u/517871?v=3","gravatar_id":"","url":"https://api.github.com/users/bmedenwald","html_url":"https://github.com/bmedenwald","followers_url":"https://api.github.com/users/bmedenwald/followers","following_url":"https://api.github.com/users/bmedenwald/following{/other_user}","gists_url":"https://api.github.com/users/bmedenwald/gists{/gist_id}","starred_url":"https://api.github.com/users/bmedenwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmedenwald/subscriptions","organizations_url":"https://api.github.com/users/bmedenwald/orgs","repos_url":"https://api.github.com/users/bmedenwald/repos","events_url":"https://api.github.com/users/bmedenwald/events{/privacy}","received_events_url":"https://api.github.com/users/bmedenwald/received_events","type":"User","site_admin":false},"body":"With Rails Conditional GET support (304 caching), the `stale?` and `fresh_when` methods rely on `collection_cache_key`, which by default utilize the `updated_at` column.  Because the audits table doesn't include an `updated_at` column, this throws an SQL error.\r\n\r\nThis change simply changed the default and relies on `super`.","created_at":"2016-09-20T13:21:24Z","updated_at":"2016-09-20T13:21:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/collectiveidea/audited/pulls/295/commits","review_comments_url":"https://api.github.com/repos/collectiveidea/audited/pulls/295/comments","review_comment_url":"https://api.github.com/repos/collectiveidea/audited/pulls/comments{/number}","comments_url":"https://api.github.com/repos/collectiveidea/audited/issues/295/comments","statuses_url":"https://api.github.com/repos/collectiveidea/audited/statuses/c1d1232c2319db94b847c525ef8f619eb734b464","head":{"label":"simplymadeapps:collection_cache_key","ref":"collection_cache_key","sha":"c1d1232c2319db94b847c525ef8f619eb734b464","user":{"login":"simplymadeapps","id":1434130,"avatar_url":"https://avatars.githubusercontent.com/u/1434130?v=3","gravatar_id":"","url":"https://api.github.com/users/simplymadeapps","html_url":"https://github.com/simplymadeapps","followers_url":"https://api.github.com/users/simplymadeapps/followers","following_url":"https://api.github.com/users/simplymadeapps/following{/other_user}","gists_url":"https://api.github.com/users/simplymadeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/simplymadeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplymadeapps/subscriptions","organizations_url":"https://api.github.com/users/simplymadeapps/orgs","repos_url":"https://api.github.com/users/simplymadeapps/repos","events_url":"https://api.github.com/users/simplymadeapps/events{/privacy}","received_events_url":"https://api.github.com/users/simplymadeapps/received_events","type":"Organization","site_admin":false},"repo":{"id":64872708,"name":"audited","full_name":"simplymadeapps/audited","owner":{"login":"simplymadeapps","id":1434130,"avatar_url":"https://avatars.githubusercontent.com/u/1434130?v=3","gravatar_id":"","url":"https://api.github.com/users/simplymadeapps","html_url":"https://github.com/simplymadeapps","followers_url":"https://api.github.com/users/simplymadeapps/followers","following_url":"https://api.github.com/users/simplymadeapps/following{/other_user}","gists_url":"https://api.github.com/users/simplymadeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/simplymadeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplymadeapps/subscriptions","organizations_url":"https://api.github.com/users/simplymadeapps/orgs","repos_url":"https://api.github.com/users/simplymadeapps/repos","events_url":"https://api.github.com/users/simplymadeapps/events{/privacy}","received_events_url":"https://api.github.com/users/simplymadeapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simplymadeapps/audited","description":"Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.","fork":true,"url":"https://api.github.com/repos/simplymadeapps/audited","forks_url":"https://api.github.com/repos/simplymadeapps/audited/forks","keys_url":"https://api.github.com/repos/simplymadeapps/audited/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simplymadeapps/audited/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simplymadeapps/audited/teams","hooks_url":"https://api.github.com/repos/simplymadeapps/audited/hooks","issue_events_url":"https://api.github.com/repos/simplymadeapps/audited/issues/events{/number}","events_url":"https://api.github.com/repos/simplymadeapps/audited/events","assignees_url":"https://api.github.com/repos/simplymadeapps/audited/assignees{/user}","branches_url":"https://api.github.com/repos/simplymadeapps/audited/branches{/branch}","tags_url":"https://api.github.com/repos/simplymadeapps/audited/tags","blobs_url":"https://api.github.com/repos/simplymadeapps/audited/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simplymadeapps/audited/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simplymadeapps/audited/git/refs{/sha}","trees_url":"https://api.github.com/repos/simplymadeapps/audited/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simplymadeapps/audited/statuses/{sha}","languages_url":"https://api.github.com/repos/simplymadeapps/audited/languages","stargazers_url":"https://api.github.com/repos/simplymadeapps/audited/stargazers","contributors_url":"https://api.github.com/repos/simplymadeapps/audited/contributors","subscribers_url":"https://api.github.com/repos/simplymadeapps/audited/subscribers","subscription_url":"https://api.github.com/repos/simplymadeapps/audited/subscription","commits_url":"https://api.github.com/repos/simplymadeapps/audited/commits{/sha}","git_commits_url":"https://api.github.com/repos/simplymadeapps/audited/git/commits{/sha}","comments_url":"https://api.github.com/repos/simplymadeapps/audited/comments{/number}","issue_comment_url":"https://api.github.com/repos/simplymadeapps/audited/issues/comments{/number}","contents_url":"https://api.github.com/repos/simplymadeapps/audited/contents/{+path}","compare_url":"https://api.github.com/repos/simplymadeapps/audited/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simplymadeapps/audited/merges","archive_url":"https://api.github.com/repos/simplymadeapps/audited/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simplymadeapps/audited/downloads","issues_url":"https://api.github.com/repos/simplymadeapps/audited/issues{/number}","pulls_url":"https://api.github.com/repos/simplymadeapps/audited/pulls{/number}","milestones_url":"https://api.github.com/repos/simplymadeapps/audited/milestones{/number}","notifications_url":"https://api.github.com/repos/simplymadeapps/audited/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simplymadeapps/audited/labels{/name}","releases_url":"https://api.github.com/repos/simplymadeapps/audited/releases{/id}","deployments_url":"https://api.github.com/repos/simplymadeapps/audited/deployments","created_at":"2016-08-03T19:15:15Z","updated_at":"2016-08-03T19:15:17Z","pushed_at":"2016-09-20T00:48:12Z","git_url":"git://github.com/simplymadeapps/audited.git","ssh_url":"git@github.com:simplymadeapps/audited.git","clone_url":"https://github.com/simplymadeapps/audited.git","svn_url":"https://github.com/simplymadeapps/audited","homepage":"","size":660,"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":"collectiveidea:master","ref":"master","sha":"ee4ab6bc93fdc72a7e39068786be453f9062be34","user":{"login":"collectiveidea","id":128,"avatar_url":"https://avatars.githubusercontent.com/u/128?v=3","gravatar_id":"","url":"https://api.github.com/users/collectiveidea","html_url":"https://github.com/collectiveidea","followers_url":"https://api.github.com/users/collectiveidea/followers","following_url":"https://api.github.com/users/collectiveidea/following{/other_user}","gists_url":"https://api.github.com/users/collectiveidea/gists{/gist_id}","starred_url":"https://api.github.com/users/collectiveidea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collectiveidea/subscriptions","organizations_url":"https://api.github.com/users/collectiveidea/orgs","repos_url":"https://api.github.com/users/collectiveidea/repos","events_url":"https://api.github.com/users/collectiveidea/events{/privacy}","received_events_url":"https://api.github.com/users/collectiveidea/received_events","type":"Organization","site_admin":false},"repo":{"id":363,"name":"audited","full_name":"collectiveidea/audited","owner":{"login":"collectiveidea","id":128,"avatar_url":"https://avatars.githubusercontent.com/u/128?v=3","gravatar_id":"","url":"https://api.github.com/users/collectiveidea","html_url":"https://github.com/collectiveidea","followers_url":"https://api.github.com/users/collectiveidea/followers","following_url":"https://api.github.com/users/collectiveidea/following{/other_user}","gists_url":"https://api.github.com/users/collectiveidea/gists{/gist_id}","starred_url":"https://api.github.com/users/collectiveidea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collectiveidea/subscriptions","organizations_url":"https://api.github.com/users/collectiveidea/orgs","repos_url":"https://api.github.com/users/collectiveidea/repos","events_url":"https://api.github.com/users/collectiveidea/events{/privacy}","received_events_url":"https://api.github.com/users/collectiveidea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/collectiveidea/audited","description":"Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.","fork":false,"url":"https://api.github.com/repos/collectiveidea/audited","forks_url":"https://api.github.com/repos/collectiveidea/audited/forks","keys_url":"https://api.github.com/repos/collectiveidea/audited/keys{/key_id}","collaborators_url":"https://api.github.com/repos/collectiveidea/audited/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/collectiveidea/audited/teams","hooks_url":"https://api.github.com/repos/collectiveidea/audited/hooks","issue_events_url":"https://api.github.com/repos/collectiveidea/audited/issues/events{/number}","events_url":"https://api.github.com/repos/collectiveidea/audited/events","assignees_url":"https://api.github.com/repos/collectiveidea/audited/assignees{/user}","branches_url":"https://api.github.com/repos/collectiveidea/audited/branches{/branch}","tags_url":"https://api.github.com/repos/collectiveidea/audited/tags","blobs_url":"https://api.github.com/repos/collectiveidea/audited/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/collectiveidea/audited/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/collectiveidea/audited/git/refs{/sha}","trees_url":"https://api.github.com/repos/collectiveidea/audited/git/trees{/sha}","statuses_url":"https://api.github.com/repos/collectiveidea/audited/statuses/{sha}","languages_url":"https://api.github.com/repos/collectiveidea/audited/languages","stargazers_url":"https://api.github.com/repos/collectiveidea/audited/stargazers","contributors_url":"https://api.github.com/repos/collectiveidea/audited/contributors","subscribers_url":"https://api.github.com/repos/collectiveidea/audited/subscribers","subscription_url":"https://api.github.com/repos/collectiveidea/audited/subscription","commits_url":"https://api.github.com/repos/collectiveidea/audited/commits{/sha}","git_commits_url":"https://api.github.com/repos/collectiveidea/audited/git/commits{/sha}","comments_url":"https://api.github.com/repos/collectiveidea/audited/comments{/number}","issue_comment_url":"https://api.github.com/repos/collectiveidea/audited/issues/comments{/number}","contents_url":"https://api.github.com/repos/collectiveidea/audited/contents/{+path}","compare_url":"https://api.github.com/repos/collectiveidea/audited/compare/{base}...{head}","merges_url":"https://api.github.com/repos/collectiveidea/audited/merges","archive_url":"https://api.github.com/repos/collectiveidea/audited/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/collectiveidea/audited/downloads","issues_url":"https://api.github.com/repos/collectiveidea/audited/issues{/number}","pulls_url":"https://api.github.com/repos/collectiveidea/audited/pulls{/number}","milestones_url":"https://api.github.com/repos/collectiveidea/audited/milestones{/number}","notifications_url":"https://api.github.com/repos/collectiveidea/audited/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/collectiveidea/audited/labels{/name}","releases_url":"https://api.github.com/repos/collectiveidea/audited/releases{/id}","deployments_url":"https://api.github.com/repos/collectiveidea/audited/deployments","created_at":"2008-02-09T16:14:05Z","updated_at":"2016-09-15T17:48:56Z","pushed_at":"2016-09-20T13:21:24Z","git_url":"git://github.com/collectiveidea/audited.git","ssh_url":"git@github.com:collectiveidea/audited.git","clone_url":"https://github.com/collectiveidea/audited.git","svn_url":"https://github.com/collectiveidea/audited","homepage":"","size":1080,"stargazers_count":1623,"watchers_count":1623,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":375,"mirror_url":null,"open_issues_count":101,"forks":375,"open_issues":101,"watchers":1623,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/collectiveidea/audited/pulls/295"},"html":{"href":"https://github.com/collectiveidea/audited/pull/295"},"issue":{"href":"https://api.github.com/repos/collectiveidea/audited/issues/295"},"comments":{"href":"https://api.github.com/repos/collectiveidea/audited/issues/295/comments"},"review_comments":{"href":"https://api.github.com/repos/collectiveidea/audited/pulls/295/comments"},"review_comment":{"href":"https://api.github.com/repos/collectiveidea/audited/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/collectiveidea/audited/pulls/295/commits"},"statuses":{"href":"https://api.github.com/repos/collectiveidea/audited/statuses/c1d1232c2319db94b847c525ef8f619eb734b464"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"bmedenwald"}}