{"action":"created","comment":{"url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments/67282969","id":67282969,"diff_hunk":"@@ -1,18 +1,22 @@\n class Reservation < ActiveRecord::Base\n+  include ReservationHelper\n+\n   belongs_to :order\n \n   validates :order, presence: true\n   validates :pickup_time, presence: true\n \n-  def self.generate_date_range\n-    time_range = (DateTime.now.beginning_of_day + 10.hour + 1.day .. DateTime.now.beginning_of_day + 15.hour + 1.day)\n-    result = []\n-    current_time = time_range.first\n-    until current_time == time_range.last + 1.hour\n-      result << current_time\n-      current_time = current_time.advance(hours: 1)\n+  def self.generate_available_dates\n+    ReservationHelper.all_dates.find_all do |time|","path":"app/models/reservation.rb","position":17,"original_position":17,"commit_id":"cc7eaacd11802be2aa2d62c785cfde71e722d582","original_commit_id":"cc7eaacd11802be2aa2d62c785cfde71e722d582","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Prefer `select` over `find_all`.","created_at":"2016-06-16T03:34:20Z","updated_at":"2016-06-16T03:34:20Z","html_url":"https://github.com/ColinOsborn/general_store/pull/117#discussion_r67282969","pull_request_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments/67282969"},"html":{"href":"https://github.com/ColinOsborn/general_store/pull/117#discussion_r67282969"},"pull_request":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117","id":74017635,"html_url":"https://github.com/ColinOsborn/general_store/pull/117","diff_url":"https://github.com/ColinOsborn/general_store/pull/117.diff","patch_url":"https://github.com/ColinOsborn/general_store/pull/117.patch","issue_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/117","number":117,"state":"open","locked":false,"title":"71 reservations","user":{"login":"saylerb","id":13383576,"avatar_url":"https://avatars.githubusercontent.com/u/13383576?v=3","gravatar_id":"","url":"https://api.github.com/users/saylerb","html_url":"https://github.com/saylerb","followers_url":"https://api.github.com/users/saylerb/followers","following_url":"https://api.github.com/users/saylerb/following{/other_user}","gists_url":"https://api.github.com/users/saylerb/gists{/gist_id}","starred_url":"https://api.github.com/users/saylerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saylerb/subscriptions","organizations_url":"https://api.github.com/users/saylerb/orgs","repos_url":"https://api.github.com/users/saylerb/repos","events_url":"https://api.github.com/users/saylerb/events{/privacy}","received_events_url":"https://api.github.com/users/saylerb/received_events","type":"User","site_admin":false},"body":"Add ability to filter drop down based on existing reservations.","created_at":"2016-06-16T03:34:12Z","updated_at":"2016-06-16T03:34:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a901413591ca32ba0cb575e1f05a8f5da78c980e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117/commits","review_comments_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117/comments","review_comment_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/117/comments","statuses_url":"https://api.github.com/repos/ColinOsborn/general_store/statuses/cc7eaacd11802be2aa2d62c785cfde71e722d582","head":{"label":"ColinOsborn:71-reservations","ref":"71-reservations","sha":"cc7eaacd11802be2aa2d62c785cfde71e722d582","user":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"repo":{"id":60564221,"name":"general_store","full_name":"ColinOsborn/general_store","owner":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColinOsborn/general_store","description":"","fork":false,"url":"https://api.github.com/repos/ColinOsborn/general_store","forks_url":"https://api.github.com/repos/ColinOsborn/general_store/forks","keys_url":"https://api.github.com/repos/ColinOsborn/general_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColinOsborn/general_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColinOsborn/general_store/teams","hooks_url":"https://api.github.com/repos/ColinOsborn/general_store/hooks","issue_events_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/events{/number}","events_url":"https://api.github.com/repos/ColinOsborn/general_store/events","assignees_url":"https://api.github.com/repos/ColinOsborn/general_store/assignees{/user}","branches_url":"https://api.github.com/repos/ColinOsborn/general_store/branches{/branch}","tags_url":"https://api.github.com/repos/ColinOsborn/general_store/tags","blobs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColinOsborn/general_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColinOsborn/general_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColinOsborn/general_store/statuses/{sha}","languages_url":"https://api.github.com/repos/ColinOsborn/general_store/languages","stargazers_url":"https://api.github.com/repos/ColinOsborn/general_store/stargazers","contributors_url":"https://api.github.com/repos/ColinOsborn/general_store/contributors","subscribers_url":"https://api.github.com/repos/ColinOsborn/general_store/subscribers","subscription_url":"https://api.github.com/repos/ColinOsborn/general_store/subscription","commits_url":"https://api.github.com/repos/ColinOsborn/general_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColinOsborn/general_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColinOsborn/general_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColinOsborn/general_store/contents/{+path}","compare_url":"https://api.github.com/repos/ColinOsborn/general_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColinOsborn/general_store/merges","archive_url":"https://api.github.com/repos/ColinOsborn/general_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColinOsborn/general_store/downloads","issues_url":"https://api.github.com/repos/ColinOsborn/general_store/issues{/number}","pulls_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls{/number}","milestones_url":"https://api.github.com/repos/ColinOsborn/general_store/milestones{/number}","notifications_url":"https://api.github.com/repos/ColinOsborn/general_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColinOsborn/general_store/labels{/name}","releases_url":"https://api.github.com/repos/ColinOsborn/general_store/releases{/id}","deployments_url":"https://api.github.com/repos/ColinOsborn/general_store/deployments","created_at":"2016-06-06T22:10:04Z","updated_at":"2016-06-07T00:08:09Z","pushed_at":"2016-06-16T03:34:12Z","git_url":"git://github.com/ColinOsborn/general_store.git","ssh_url":"git@github.com:ColinOsborn/general_store.git","clone_url":"https://github.com/ColinOsborn/general_store.git","svn_url":"https://github.com/ColinOsborn/general_store","homepage":null,"size":2989,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"ColinOsborn:development_master","ref":"development_master","sha":"a91d71676fb22ccebf9a0e30fefe262567f9f228","user":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"repo":{"id":60564221,"name":"general_store","full_name":"ColinOsborn/general_store","owner":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColinOsborn/general_store","description":"","fork":false,"url":"https://api.github.com/repos/ColinOsborn/general_store","forks_url":"https://api.github.com/repos/ColinOsborn/general_store/forks","keys_url":"https://api.github.com/repos/ColinOsborn/general_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColinOsborn/general_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColinOsborn/general_store/teams","hooks_url":"https://api.github.com/repos/ColinOsborn/general_store/hooks","issue_events_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/events{/number}","events_url":"https://api.github.com/repos/ColinOsborn/general_store/events","assignees_url":"https://api.github.com/repos/ColinOsborn/general_store/assignees{/user}","branches_url":"https://api.github.com/repos/ColinOsborn/general_store/branches{/branch}","tags_url":"https://api.github.com/repos/ColinOsborn/general_store/tags","blobs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColinOsborn/general_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColinOsborn/general_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColinOsborn/general_store/statuses/{sha}","languages_url":"https://api.github.com/repos/ColinOsborn/general_store/languages","stargazers_url":"https://api.github.com/repos/ColinOsborn/general_store/stargazers","contributors_url":"https://api.github.com/repos/ColinOsborn/general_store/contributors","subscribers_url":"https://api.github.com/repos/ColinOsborn/general_store/subscribers","subscription_url":"https://api.github.com/repos/ColinOsborn/general_store/subscription","commits_url":"https://api.github.com/repos/ColinOsborn/general_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColinOsborn/general_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColinOsborn/general_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColinOsborn/general_store/contents/{+path}","compare_url":"https://api.github.com/repos/ColinOsborn/general_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColinOsborn/general_store/merges","archive_url":"https://api.github.com/repos/ColinOsborn/general_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColinOsborn/general_store/downloads","issues_url":"https://api.github.com/repos/ColinOsborn/general_store/issues{/number}","pulls_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls{/number}","milestones_url":"https://api.github.com/repos/ColinOsborn/general_store/milestones{/number}","notifications_url":"https://api.github.com/repos/ColinOsborn/general_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColinOsborn/general_store/labels{/name}","releases_url":"https://api.github.com/repos/ColinOsborn/general_store/releases{/id}","deployments_url":"https://api.github.com/repos/ColinOsborn/general_store/deployments","created_at":"2016-06-06T22:10:04Z","updated_at":"2016-06-07T00:08:09Z","pushed_at":"2016-06-16T03:34:12Z","git_url":"git://github.com/ColinOsborn/general_store.git","ssh_url":"git@github.com:ColinOsborn/general_store.git","clone_url":"https://github.com/ColinOsborn/general_store.git","svn_url":"https://github.com/ColinOsborn/general_store","homepage":null,"size":2989,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117"},"html":{"href":"https://github.com/ColinOsborn/general_store/pull/117"},"issue":{"href":"https://api.github.com/repos/ColinOsborn/general_store/issues/117"},"comments":{"href":"https://api.github.com/repos/ColinOsborn/general_store/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/ColinOsborn/general_store/statuses/cc7eaacd11802be2aa2d62c785cfde71e722d582"}}}}
{"actor":{"display_login":"houndci-bot"}}