{"action":"created","comment":{"url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/comments/182915771","pull_request_review_id":113814358,"id":182915771,"diff_hunk":"@@ -1,6 +1,18 @@\n class CartedSubscription < ApplicationRecord\n-  belongs_to :customer # , optional: true\n+  belongs_to :customer, optional: true\n   # validates :plan_id, presence: { message: 'Please select a plan' }\n   # validates :quantity, numericality: { greater_than: 0, message: 'Please select a quantity' }\n   # scope :my_carted, ->(id) { where(status: 'carted', customer_id: id) }\n+\n+  def next_date\n+    today = Date.today","path":"app/models/carted_subscription.rb","position":9,"original_position":9,"commit_id":"d2d9076020ce8dd6f3702d88726faa8c7eb0d530","original_commit_id":"d2d9076020ce8dd6f3702d88726faa8c7eb0d530","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Rails/Date: Do not use Date.today without zone. Use Time.zone.today instead.","created_at":"2018-04-19T23:52:13Z","updated_at":"2018-04-19T23:52:14Z","html_url":"https://github.com/the-difference-engine/back-yards-coffee-app/pull/301#discussion_r182915771","pull_request_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/comments/182915771"},"html":{"href":"https://github.com/the-difference-engine/back-yards-coffee-app/pull/301#discussion_r182915771"},"pull_request":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301"}}},"pull_request":{"url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301","id":182927790,"html_url":"https://github.com/the-difference-engine/back-yards-coffee-app/pull/301","diff_url":"https://github.com/the-difference-engine/back-yards-coffee-app/pull/301.diff","patch_url":"https://github.com/the-difference-engine/back-yards-coffee-app/pull/301.patch","issue_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/301","number":301,"state":"open","locked":false,"title":"Update carted subcscriptions using jsonb","user":{"login":"misternu","id":4739591,"avatar_url":"https://avatars1.githubusercontent.com/u/4739591?v=4","gravatar_id":"","url":"https://api.github.com/users/misternu","html_url":"https://github.com/misternu","followers_url":"https://api.github.com/users/misternu/followers","following_url":"https://api.github.com/users/misternu/following{/other_user}","gists_url":"https://api.github.com/users/misternu/gists{/gist_id}","starred_url":"https://api.github.com/users/misternu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misternu/subscriptions","organizations_url":"https://api.github.com/users/misternu/orgs","repos_url":"https://api.github.com/users/misternu/repos","events_url":"https://api.github.com/users/misternu/events{/privacy}","received_events_url":"https://api.github.com/users/misternu/received_events","type":"User","site_admin":false},"body":"[Card #229 Subscription Controller: Update action updates only the carted_subscriptions.products json](https://trello.com/c/3v0IAi9S)\r\n\r\n#update route for CartedScriptionsController, rspec tests\r\n\r\n* Moved some logic down out of the controller\r\n* Edited routes for CartedSubscription\r\n* New test factory for CartedSubscription","created_at":"2018-04-19T23:52:03Z","updated_at":"2018-04-19T23:52:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14e94fab56cb1a9909b08ed3c7d17fae658f8512","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301/commits","review_comments_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301/comments","review_comment_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/301/comments","statuses_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/statuses/d2d9076020ce8dd6f3702d88726faa8c7eb0d530","head":{"label":"the-difference-engine:carted_subscriptions_update_jsonb","ref":"carted_subscriptions_update_jsonb","sha":"d2d9076020ce8dd6f3702d88726faa8c7eb0d530","user":{"login":"the-difference-engine","id":18339678,"avatar_url":"https://avatars0.githubusercontent.com/u/18339678?v=4","gravatar_id":"","url":"https://api.github.com/users/the-difference-engine","html_url":"https://github.com/the-difference-engine","followers_url":"https://api.github.com/users/the-difference-engine/followers","following_url":"https://api.github.com/users/the-difference-engine/following{/other_user}","gists_url":"https://api.github.com/users/the-difference-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/the-difference-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-difference-engine/subscriptions","organizations_url":"https://api.github.com/users/the-difference-engine/orgs","repos_url":"https://api.github.com/users/the-difference-engine/repos","events_url":"https://api.github.com/users/the-difference-engine/events{/privacy}","received_events_url":"https://api.github.com/users/the-difference-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":93463324,"name":"back-yards-coffee-app","full_name":"the-difference-engine/back-yards-coffee-app","owner":{"login":"the-difference-engine","id":18339678,"avatar_url":"https://avatars0.githubusercontent.com/u/18339678?v=4","gravatar_id":"","url":"https://api.github.com/users/the-difference-engine","html_url":"https://github.com/the-difference-engine","followers_url":"https://api.github.com/users/the-difference-engine/followers","following_url":"https://api.github.com/users/the-difference-engine/following{/other_user}","gists_url":"https://api.github.com/users/the-difference-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/the-difference-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-difference-engine/subscriptions","organizations_url":"https://api.github.com/users/the-difference-engine/orgs","repos_url":"https://api.github.com/users/the-difference-engine/repos","events_url":"https://api.github.com/users/the-difference-engine/events{/privacy}","received_events_url":"https://api.github.com/users/the-difference-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/the-difference-engine/back-yards-coffee-app","description":"Web app for a specialty coffee roasting company located in Chicago's Back of the Yards community.","fork":false,"url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app","forks_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/forks","keys_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/teams","hooks_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/hooks","issue_events_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/events{/number}","events_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/events","assignees_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/assignees{/user}","branches_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/branches{/branch}","tags_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/tags","blobs_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/statuses/{sha}","languages_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/languages","stargazers_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/stargazers","contributors_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/contributors","subscribers_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/subscribers","subscription_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/subscription","commits_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/contents/{+path}","compare_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/merges","archive_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/downloads","issues_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues{/number}","pulls_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls{/number}","milestones_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/milestones{/number}","notifications_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/labels{/name}","releases_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/releases{/id}","deployments_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/deployments","created_at":"2017-06-06T01:39:56Z","updated_at":"2018-04-19T00:00:20Z","pushed_at":"2018-04-19T23:52:03Z","git_url":"git://github.com/the-difference-engine/back-yards-coffee-app.git","ssh_url":"git@github.com:the-difference-engine/back-yards-coffee-app.git","clone_url":"https://github.com/the-difference-engine/back-yards-coffee-app.git","svn_url":"https://github.com/the-difference-engine/back-yards-coffee-app","homepage":"","size":98212,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":2,"open_issues":9,"watchers":8,"default_branch":"qa"}},"base":{"label":"the-difference-engine:qa","ref":"qa","sha":"70c78057ac735e233991a6248d192a623c37b0fb","user":{"login":"the-difference-engine","id":18339678,"avatar_url":"https://avatars0.githubusercontent.com/u/18339678?v=4","gravatar_id":"","url":"https://api.github.com/users/the-difference-engine","html_url":"https://github.com/the-difference-engine","followers_url":"https://api.github.com/users/the-difference-engine/followers","following_url":"https://api.github.com/users/the-difference-engine/following{/other_user}","gists_url":"https://api.github.com/users/the-difference-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/the-difference-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-difference-engine/subscriptions","organizations_url":"https://api.github.com/users/the-difference-engine/orgs","repos_url":"https://api.github.com/users/the-difference-engine/repos","events_url":"https://api.github.com/users/the-difference-engine/events{/privacy}","received_events_url":"https://api.github.com/users/the-difference-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":93463324,"name":"back-yards-coffee-app","full_name":"the-difference-engine/back-yards-coffee-app","owner":{"login":"the-difference-engine","id":18339678,"avatar_url":"https://avatars0.githubusercontent.com/u/18339678?v=4","gravatar_id":"","url":"https://api.github.com/users/the-difference-engine","html_url":"https://github.com/the-difference-engine","followers_url":"https://api.github.com/users/the-difference-engine/followers","following_url":"https://api.github.com/users/the-difference-engine/following{/other_user}","gists_url":"https://api.github.com/users/the-difference-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/the-difference-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-difference-engine/subscriptions","organizations_url":"https://api.github.com/users/the-difference-engine/orgs","repos_url":"https://api.github.com/users/the-difference-engine/repos","events_url":"https://api.github.com/users/the-difference-engine/events{/privacy}","received_events_url":"https://api.github.com/users/the-difference-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/the-difference-engine/back-yards-coffee-app","description":"Web app for a specialty coffee roasting company located in Chicago's Back of the Yards community.","fork":false,"url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app","forks_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/forks","keys_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/teams","hooks_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/hooks","issue_events_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/events{/number}","events_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/events","assignees_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/assignees{/user}","branches_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/branches{/branch}","tags_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/tags","blobs_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/statuses/{sha}","languages_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/languages","stargazers_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/stargazers","contributors_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/contributors","subscribers_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/subscribers","subscription_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/subscription","commits_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/contents/{+path}","compare_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/merges","archive_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/downloads","issues_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues{/number}","pulls_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls{/number}","milestones_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/milestones{/number}","notifications_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/labels{/name}","releases_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/releases{/id}","deployments_url":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/deployments","created_at":"2017-06-06T01:39:56Z","updated_at":"2018-04-19T00:00:20Z","pushed_at":"2018-04-19T23:52:03Z","git_url":"git://github.com/the-difference-engine/back-yards-coffee-app.git","ssh_url":"git@github.com:the-difference-engine/back-yards-coffee-app.git","clone_url":"https://github.com/the-difference-engine/back-yards-coffee-app.git","svn_url":"https://github.com/the-difference-engine/back-yards-coffee-app","homepage":"","size":98212,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":2,"open_issues":9,"watchers":8,"default_branch":"qa"}},"_links":{"self":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301"},"html":{"href":"https://github.com/the-difference-engine/back-yards-coffee-app/pull/301"},"issue":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/301"},"comments":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301/comments"},"review_comment":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/pulls/301/commits"},"statuses":{"href":"https://api.github.com/repos/the-difference-engine/back-yards-coffee-app/statuses/d2d9076020ce8dd6f3702d88726faa8c7eb0d530"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}