{"action":"created","comment":{"url":"https://api.github.com/repos/jensljungblad/blending/pulls/comments/68811697","id":68811697,"diff_hunk":"@@ -12,6 +12,25 @@ def matched_with(person)\n     newcomer == person ? established : newcomer\n   end\n \n+  scope :active, -> { where(\"concluded_at >= ?\", Time.zone.now) }\n+  scope :inactive, -> { where(\"concluded_at < ?\", Time.zone.now) }\n+\n+  def active?\n+    concluded_at > Time.zone.now\n+  end\n+\n+  def conclude!","path":"app/models/match.rb","position":11,"original_position":11,"commit_id":"fb87e3d5eb35a2fe796376b2015a2536a54e8cff","original_commit_id":"fb87e3d5eb35a2fe796376b2015a2536a54e8cff","user":{"login":"jensljungblad","id":271354,"avatar_url":"https://avatars.githubusercontent.com/u/271354?v=3","gravatar_id":"","url":"https://api.github.com/users/jensljungblad","html_url":"https://github.com/jensljungblad","followers_url":"https://api.github.com/users/jensljungblad/followers","following_url":"https://api.github.com/users/jensljungblad/following{/other_user}","gists_url":"https://api.github.com/users/jensljungblad/gists{/gist_id}","starred_url":"https://api.github.com/users/jensljungblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensljungblad/subscriptions","organizations_url":"https://api.github.com/users/jensljungblad/orgs","repos_url":"https://api.github.com/users/jensljungblad/repos","events_url":"https://api.github.com/users/jensljungblad/events{/privacy}","received_events_url":"https://api.github.com/users/jensljungblad/received_events","type":"User","site_admin":false},"body":"No bang!","created_at":"2016-06-28T18:12:48Z","updated_at":"2016-06-28T18:12:48Z","html_url":"https://github.com/jensljungblad/blending/pull/6#discussion_r68811697","pull_request_url":"https://api.github.com/repos/jensljungblad/blending/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/jensljungblad/blending/pulls/comments/68811697"},"html":{"href":"https://github.com/jensljungblad/blending/pull/6#discussion_r68811697"},"pull_request":{"href":"https://api.github.com/repos/jensljungblad/blending/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/jensljungblad/blending/pulls/6","id":70125133,"html_url":"https://github.com/jensljungblad/blending/pull/6","diff_url":"https://github.com/jensljungblad/blending/pull/6.diff","patch_url":"https://github.com/jensljungblad/blending/pull/6.patch","issue_url":"https://api.github.com/repos/jensljungblad/blending/issues/6","number":6,"state":"open","locked":false,"title":"Add ability to activate and deactivate matches","user":{"login":"juliaramstedt","id":2337941,"avatar_url":"https://avatars.githubusercontent.com/u/2337941?v=3","gravatar_id":"","url":"https://api.github.com/users/juliaramstedt","html_url":"https://github.com/juliaramstedt","followers_url":"https://api.github.com/users/juliaramstedt/followers","following_url":"https://api.github.com/users/juliaramstedt/following{/other_user}","gists_url":"https://api.github.com/users/juliaramstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/juliaramstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliaramstedt/subscriptions","organizations_url":"https://api.github.com/users/juliaramstedt/orgs","repos_url":"https://api.github.com/users/juliaramstedt/repos","events_url":"https://api.github.com/users/juliaramstedt/events{/privacy}","received_events_url":"https://api.github.com/users/juliaramstedt/received_events","type":"User","site_admin":false},"body":"\r\n- [x] When matches are created their \"concluded_at\" date is set to 6 months in the future\r\n- [x] Adds a function for deactivating matchings, which sets a date on the column \"concluded_at\"\r\n- [x] Adds a button in admin for deactivating matchings\r\n- [x] Adds scopes to matchings to separate between active and inactive\r\n- [x] Moves the \"destroy\" button so that only inactive matchings can be destroyed","created_at":"2016-05-15T16:01:01Z","updated_at":"2016-06-28T18:12:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b918620c8f961beb572392316ac558954640d35","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jensljungblad/blending/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jensljungblad/blending/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jensljungblad/blending/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jensljungblad/blending/issues/6/comments","statuses_url":"https://api.github.com/repos/jensljungblad/blending/statuses/fb87e3d5eb35a2fe796376b2015a2536a54e8cff","head":{"label":"jensljungblad:feature/deactivate-matchings","ref":"feature/deactivate-matchings","sha":"fb87e3d5eb35a2fe796376b2015a2536a54e8cff","user":{"login":"jensljungblad","id":271354,"avatar_url":"https://avatars.githubusercontent.com/u/271354?v=3","gravatar_id":"","url":"https://api.github.com/users/jensljungblad","html_url":"https://github.com/jensljungblad","followers_url":"https://api.github.com/users/jensljungblad/followers","following_url":"https://api.github.com/users/jensljungblad/following{/other_user}","gists_url":"https://api.github.com/users/jensljungblad/gists{/gist_id}","starred_url":"https://api.github.com/users/jensljungblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensljungblad/subscriptions","organizations_url":"https://api.github.com/users/jensljungblad/orgs","repos_url":"https://api.github.com/users/jensljungblad/repos","events_url":"https://api.github.com/users/jensljungblad/events{/privacy}","received_events_url":"https://api.github.com/users/jensljungblad/received_events","type":"User","site_admin":false},"repo":{"id":56376101,"name":"blending","full_name":"jensljungblad/blending","owner":{"login":"jensljungblad","id":271354,"avatar_url":"https://avatars.githubusercontent.com/u/271354?v=3","gravatar_id":"","url":"https://api.github.com/users/jensljungblad","html_url":"https://github.com/jensljungblad","followers_url":"https://api.github.com/users/jensljungblad/followers","following_url":"https://api.github.com/users/jensljungblad/following{/other_user}","gists_url":"https://api.github.com/users/jensljungblad/gists{/gist_id}","starred_url":"https://api.github.com/users/jensljungblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensljungblad/subscriptions","organizations_url":"https://api.github.com/users/jensljungblad/orgs","repos_url":"https://api.github.com/users/jensljungblad/repos","events_url":"https://api.github.com/users/jensljungblad/events{/privacy}","received_events_url":"https://api.github.com/users/jensljungblad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jensljungblad/blending","description":"","fork":false,"url":"https://api.github.com/repos/jensljungblad/blending","forks_url":"https://api.github.com/repos/jensljungblad/blending/forks","keys_url":"https://api.github.com/repos/jensljungblad/blending/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jensljungblad/blending/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jensljungblad/blending/teams","hooks_url":"https://api.github.com/repos/jensljungblad/blending/hooks","issue_events_url":"https://api.github.com/repos/jensljungblad/blending/issues/events{/number}","events_url":"https://api.github.com/repos/jensljungblad/blending/events","assignees_url":"https://api.github.com/repos/jensljungblad/blending/assignees{/user}","branches_url":"https://api.github.com/repos/jensljungblad/blending/branches{/branch}","tags_url":"https://api.github.com/repos/jensljungblad/blending/tags","blobs_url":"https://api.github.com/repos/jensljungblad/blending/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jensljungblad/blending/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jensljungblad/blending/git/refs{/sha}","trees_url":"https://api.github.com/repos/jensljungblad/blending/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jensljungblad/blending/statuses/{sha}","languages_url":"https://api.github.com/repos/jensljungblad/blending/languages","stargazers_url":"https://api.github.com/repos/jensljungblad/blending/stargazers","contributors_url":"https://api.github.com/repos/jensljungblad/blending/contributors","subscribers_url":"https://api.github.com/repos/jensljungblad/blending/subscribers","subscription_url":"https://api.github.com/repos/jensljungblad/blending/subscription","commits_url":"https://api.github.com/repos/jensljungblad/blending/commits{/sha}","git_commits_url":"https://api.github.com/repos/jensljungblad/blending/git/commits{/sha}","comments_url":"https://api.github.com/repos/jensljungblad/blending/comments{/number}","issue_comment_url":"https://api.github.com/repos/jensljungblad/blending/issues/comments{/number}","contents_url":"https://api.github.com/repos/jensljungblad/blending/contents/{+path}","compare_url":"https://api.github.com/repos/jensljungblad/blending/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jensljungblad/blending/merges","archive_url":"https://api.github.com/repos/jensljungblad/blending/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jensljungblad/blending/downloads","issues_url":"https://api.github.com/repos/jensljungblad/blending/issues{/number}","pulls_url":"https://api.github.com/repos/jensljungblad/blending/pulls{/number}","milestones_url":"https://api.github.com/repos/jensljungblad/blending/milestones{/number}","notifications_url":"https://api.github.com/repos/jensljungblad/blending/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jensljungblad/blending/labels{/name}","releases_url":"https://api.github.com/repos/jensljungblad/blending/releases{/id}","deployments_url":"https://api.github.com/repos/jensljungblad/blending/deployments","created_at":"2016-04-16T09:37:24Z","updated_at":"2016-06-28T15:58:48Z","pushed_at":"2016-06-28T17:56:12Z","git_url":"git://github.com/jensljungblad/blending.git","ssh_url":"git@github.com:jensljungblad/blending.git","clone_url":"https://github.com/jensljungblad/blending.git","svn_url":"https://github.com/jensljungblad/blending","homepage":null,"size":96,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"jensljungblad:master","ref":"master","sha":"b728405f0132651c5036cca3b0b169b42b2dc686","user":{"login":"jensljungblad","id":271354,"avatar_url":"https://avatars.githubusercontent.com/u/271354?v=3","gravatar_id":"","url":"https://api.github.com/users/jensljungblad","html_url":"https://github.com/jensljungblad","followers_url":"https://api.github.com/users/jensljungblad/followers","following_url":"https://api.github.com/users/jensljungblad/following{/other_user}","gists_url":"https://api.github.com/users/jensljungblad/gists{/gist_id}","starred_url":"https://api.github.com/users/jensljungblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensljungblad/subscriptions","organizations_url":"https://api.github.com/users/jensljungblad/orgs","repos_url":"https://api.github.com/users/jensljungblad/repos","events_url":"https://api.github.com/users/jensljungblad/events{/privacy}","received_events_url":"https://api.github.com/users/jensljungblad/received_events","type":"User","site_admin":false},"repo":{"id":56376101,"name":"blending","full_name":"jensljungblad/blending","owner":{"login":"jensljungblad","id":271354,"avatar_url":"https://avatars.githubusercontent.com/u/271354?v=3","gravatar_id":"","url":"https://api.github.com/users/jensljungblad","html_url":"https://github.com/jensljungblad","followers_url":"https://api.github.com/users/jensljungblad/followers","following_url":"https://api.github.com/users/jensljungblad/following{/other_user}","gists_url":"https://api.github.com/users/jensljungblad/gists{/gist_id}","starred_url":"https://api.github.com/users/jensljungblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensljungblad/subscriptions","organizations_url":"https://api.github.com/users/jensljungblad/orgs","repos_url":"https://api.github.com/users/jensljungblad/repos","events_url":"https://api.github.com/users/jensljungblad/events{/privacy}","received_events_url":"https://api.github.com/users/jensljungblad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jensljungblad/blending","description":"","fork":false,"url":"https://api.github.com/repos/jensljungblad/blending","forks_url":"https://api.github.com/repos/jensljungblad/blending/forks","keys_url":"https://api.github.com/repos/jensljungblad/blending/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jensljungblad/blending/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jensljungblad/blending/teams","hooks_url":"https://api.github.com/repos/jensljungblad/blending/hooks","issue_events_url":"https://api.github.com/repos/jensljungblad/blending/issues/events{/number}","events_url":"https://api.github.com/repos/jensljungblad/blending/events","assignees_url":"https://api.github.com/repos/jensljungblad/blending/assignees{/user}","branches_url":"https://api.github.com/repos/jensljungblad/blending/branches{/branch}","tags_url":"https://api.github.com/repos/jensljungblad/blending/tags","blobs_url":"https://api.github.com/repos/jensljungblad/blending/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jensljungblad/blending/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jensljungblad/blending/git/refs{/sha}","trees_url":"https://api.github.com/repos/jensljungblad/blending/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jensljungblad/blending/statuses/{sha}","languages_url":"https://api.github.com/repos/jensljungblad/blending/languages","stargazers_url":"https://api.github.com/repos/jensljungblad/blending/stargazers","contributors_url":"https://api.github.com/repos/jensljungblad/blending/contributors","subscribers_url":"https://api.github.com/repos/jensljungblad/blending/subscribers","subscription_url":"https://api.github.com/repos/jensljungblad/blending/subscription","commits_url":"https://api.github.com/repos/jensljungblad/blending/commits{/sha}","git_commits_url":"https://api.github.com/repos/jensljungblad/blending/git/commits{/sha}","comments_url":"https://api.github.com/repos/jensljungblad/blending/comments{/number}","issue_comment_url":"https://api.github.com/repos/jensljungblad/blending/issues/comments{/number}","contents_url":"https://api.github.com/repos/jensljungblad/blending/contents/{+path}","compare_url":"https://api.github.com/repos/jensljungblad/blending/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jensljungblad/blending/merges","archive_url":"https://api.github.com/repos/jensljungblad/blending/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jensljungblad/blending/downloads","issues_url":"https://api.github.com/repos/jensljungblad/blending/issues{/number}","pulls_url":"https://api.github.com/repos/jensljungblad/blending/pulls{/number}","milestones_url":"https://api.github.com/repos/jensljungblad/blending/milestones{/number}","notifications_url":"https://api.github.com/repos/jensljungblad/blending/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jensljungblad/blending/labels{/name}","releases_url":"https://api.github.com/repos/jensljungblad/blending/releases{/id}","deployments_url":"https://api.github.com/repos/jensljungblad/blending/deployments","created_at":"2016-04-16T09:37:24Z","updated_at":"2016-06-28T15:58:48Z","pushed_at":"2016-06-28T17:56:12Z","git_url":"git://github.com/jensljungblad/blending.git","ssh_url":"git@github.com:jensljungblad/blending.git","clone_url":"https://github.com/jensljungblad/blending.git","svn_url":"https://github.com/jensljungblad/blending","homepage":null,"size":96,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jensljungblad/blending/pulls/6"},"html":{"href":"https://github.com/jensljungblad/blending/pull/6"},"issue":{"href":"https://api.github.com/repos/jensljungblad/blending/issues/6"},"comments":{"href":"https://api.github.com/repos/jensljungblad/blending/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jensljungblad/blending/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jensljungblad/blending/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jensljungblad/blending/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jensljungblad/blending/statuses/fb87e3d5eb35a2fe796376b2015a2536a54e8cff"}}}}
{"actor":{"display_login":"jensljungblad"}}