{"action":"created","comment":{"url":"https://api.github.com/repos/crowlebf/round-out/pulls/comments/50595431","id":50595431,"diff_hunk":"@@ -1,11 +1,23 @@\n class Event < ActiveRecord::Base\n+  attr_accessor :start_date, :start_time\n+  before_validation :set_start_date_time\n+\n   has_many :memberships\n   has_many :users, through: :memberships\n   belongs_to :user\n   validates :title, presence: true\n   validates :description, presence: true\n-  validates :starts_at, presence: true\n   validates :address, presence: true\n   validates :city, presence: true\n   validates :state, presence: true\n+\n+  mount_uploader :picture, EventUploader\n+\n+\n+  def set_start_date_time\n+    self.starts_at = Time.zone.parse(\"#{start_date} #{start_time}\")\n+  end\n+\n+  # scope :upcoming, -> { where(\"events.starts_at >= ?\", Time.now) }\n+","path":"app/models/event.rb","position":23,"original_position":23,"commit_id":"88e88d98f55266e05a38fd4924e54765560aa05b","original_commit_id":"88e88d98f55266e05a38fd4924e54765560aa05b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at class body end.","created_at":"2016-01-22T21:48:14Z","updated_at":"2016-01-22T21:48:14Z","html_url":"https://github.com/crowlebf/round-out/pull/7#discussion_r50595431","pull_request_url":"https://api.github.com/repos/crowlebf/round-out/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/crowlebf/round-out/pulls/comments/50595431"},"html":{"href":"https://github.com/crowlebf/round-out/pull/7#discussion_r50595431"},"pull_request":{"href":"https://api.github.com/repos/crowlebf/round-out/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/crowlebf/round-out/pulls/7","id":56945593,"html_url":"https://github.com/crowlebf/round-out/pull/7","diff_url":"https://github.com/crowlebf/round-out/pull/7.diff","patch_url":"https://github.com/crowlebf/round-out/pull/7.patch","issue_url":"https://api.github.com/repos/crowlebf/round-out/issues/7","number":7,"state":"open","locked":false,"title":"styling and date fix","user":{"login":"crowlebf","id":13263778,"avatar_url":"https://avatars.githubusercontent.com/u/13263778?v=3","gravatar_id":"","url":"https://api.github.com/users/crowlebf","html_url":"https://github.com/crowlebf","followers_url":"https://api.github.com/users/crowlebf/followers","following_url":"https://api.github.com/users/crowlebf/following{/other_user}","gists_url":"https://api.github.com/users/crowlebf/gists{/gist_id}","starred_url":"https://api.github.com/users/crowlebf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowlebf/subscriptions","organizations_url":"https://api.github.com/users/crowlebf/orgs","repos_url":"https://api.github.com/users/crowlebf/repos","events_url":"https://api.github.com/users/crowlebf/events{/privacy}","received_events_url":"https://api.github.com/users/crowlebf/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-22T21:42:50Z","updated_at":"2016-01-22T21:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e154a5876189526f32b31490c260a0cb6781d013","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowlebf/round-out/pulls/7/commits","review_comments_url":"https://api.github.com/repos/crowlebf/round-out/pulls/7/comments","review_comment_url":"https://api.github.com/repos/crowlebf/round-out/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowlebf/round-out/issues/7/comments","statuses_url":"https://api.github.com/repos/crowlebf/round-out/statuses/88e88d98f55266e05a38fd4924e54765560aa05b","head":{"label":"crowlebf:styling","ref":"styling","sha":"88e88d98f55266e05a38fd4924e54765560aa05b","user":{"login":"crowlebf","id":13263778,"avatar_url":"https://avatars.githubusercontent.com/u/13263778?v=3","gravatar_id":"","url":"https://api.github.com/users/crowlebf","html_url":"https://github.com/crowlebf","followers_url":"https://api.github.com/users/crowlebf/followers","following_url":"https://api.github.com/users/crowlebf/following{/other_user}","gists_url":"https://api.github.com/users/crowlebf/gists{/gist_id}","starred_url":"https://api.github.com/users/crowlebf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowlebf/subscriptions","organizations_url":"https://api.github.com/users/crowlebf/orgs","repos_url":"https://api.github.com/users/crowlebf/repos","events_url":"https://api.github.com/users/crowlebf/events{/privacy}","received_events_url":"https://api.github.com/users/crowlebf/received_events","type":"User","site_admin":false},"repo":{"id":49544877,"name":"round-out","full_name":"crowlebf/round-out","owner":{"login":"crowlebf","id":13263778,"avatar_url":"https://avatars.githubusercontent.com/u/13263778?v=3","gravatar_id":"","url":"https://api.github.com/users/crowlebf","html_url":"https://github.com/crowlebf","followers_url":"https://api.github.com/users/crowlebf/followers","following_url":"https://api.github.com/users/crowlebf/following{/other_user}","gists_url":"https://api.github.com/users/crowlebf/gists{/gist_id}","starred_url":"https://api.github.com/users/crowlebf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowlebf/subscriptions","organizations_url":"https://api.github.com/users/crowlebf/orgs","repos_url":"https://api.github.com/users/crowlebf/repos","events_url":"https://api.github.com/users/crowlebf/events{/privacy}","received_events_url":"https://api.github.com/users/crowlebf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crowlebf/round-out","description":null,"fork":false,"url":"https://api.github.com/repos/crowlebf/round-out","forks_url":"https://api.github.com/repos/crowlebf/round-out/forks","keys_url":"https://api.github.com/repos/crowlebf/round-out/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowlebf/round-out/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowlebf/round-out/teams","hooks_url":"https://api.github.com/repos/crowlebf/round-out/hooks","issue_events_url":"https://api.github.com/repos/crowlebf/round-out/issues/events{/number}","events_url":"https://api.github.com/repos/crowlebf/round-out/events","assignees_url":"https://api.github.com/repos/crowlebf/round-out/assignees{/user}","branches_url":"https://api.github.com/repos/crowlebf/round-out/branches{/branch}","tags_url":"https://api.github.com/repos/crowlebf/round-out/tags","blobs_url":"https://api.github.com/repos/crowlebf/round-out/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowlebf/round-out/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowlebf/round-out/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowlebf/round-out/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowlebf/round-out/statuses/{sha}","languages_url":"https://api.github.com/repos/crowlebf/round-out/languages","stargazers_url":"https://api.github.com/repos/crowlebf/round-out/stargazers","contributors_url":"https://api.github.com/repos/crowlebf/round-out/contributors","subscribers_url":"https://api.github.com/repos/crowlebf/round-out/subscribers","subscription_url":"https://api.github.com/repos/crowlebf/round-out/subscription","commits_url":"https://api.github.com/repos/crowlebf/round-out/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowlebf/round-out/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowlebf/round-out/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowlebf/round-out/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowlebf/round-out/contents/{+path}","compare_url":"https://api.github.com/repos/crowlebf/round-out/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowlebf/round-out/merges","archive_url":"https://api.github.com/repos/crowlebf/round-out/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowlebf/round-out/downloads","issues_url":"https://api.github.com/repos/crowlebf/round-out/issues{/number}","pulls_url":"https://api.github.com/repos/crowlebf/round-out/pulls{/number}","milestones_url":"https://api.github.com/repos/crowlebf/round-out/milestones{/number}","notifications_url":"https://api.github.com/repos/crowlebf/round-out/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowlebf/round-out/labels{/name}","releases_url":"https://api.github.com/repos/crowlebf/round-out/releases{/id}","deployments_url":"https://api.github.com/repos/crowlebf/round-out/deployments","created_at":"2016-01-13T02:51:51Z","updated_at":"2016-01-13T05:20:14Z","pushed_at":"2016-01-22T21:47:45Z","git_url":"git://github.com/crowlebf/round-out.git","ssh_url":"git@github.com:crowlebf/round-out.git","clone_url":"https://github.com/crowlebf/round-out.git","svn_url":"https://github.com/crowlebf/round-out","homepage":null,"size":839,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":0,"default_branch":"master"}},"base":{"label":"crowlebf:master","ref":"master","sha":"d635464bec1cd422dffc62e3fa9384fca7a1f445","user":{"login":"crowlebf","id":13263778,"avatar_url":"https://avatars.githubusercontent.com/u/13263778?v=3","gravatar_id":"","url":"https://api.github.com/users/crowlebf","html_url":"https://github.com/crowlebf","followers_url":"https://api.github.com/users/crowlebf/followers","following_url":"https://api.github.com/users/crowlebf/following{/other_user}","gists_url":"https://api.github.com/users/crowlebf/gists{/gist_id}","starred_url":"https://api.github.com/users/crowlebf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowlebf/subscriptions","organizations_url":"https://api.github.com/users/crowlebf/orgs","repos_url":"https://api.github.com/users/crowlebf/repos","events_url":"https://api.github.com/users/crowlebf/events{/privacy}","received_events_url":"https://api.github.com/users/crowlebf/received_events","type":"User","site_admin":false},"repo":{"id":49544877,"name":"round-out","full_name":"crowlebf/round-out","owner":{"login":"crowlebf","id":13263778,"avatar_url":"https://avatars.githubusercontent.com/u/13263778?v=3","gravatar_id":"","url":"https://api.github.com/users/crowlebf","html_url":"https://github.com/crowlebf","followers_url":"https://api.github.com/users/crowlebf/followers","following_url":"https://api.github.com/users/crowlebf/following{/other_user}","gists_url":"https://api.github.com/users/crowlebf/gists{/gist_id}","starred_url":"https://api.github.com/users/crowlebf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowlebf/subscriptions","organizations_url":"https://api.github.com/users/crowlebf/orgs","repos_url":"https://api.github.com/users/crowlebf/repos","events_url":"https://api.github.com/users/crowlebf/events{/privacy}","received_events_url":"https://api.github.com/users/crowlebf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crowlebf/round-out","description":null,"fork":false,"url":"https://api.github.com/repos/crowlebf/round-out","forks_url":"https://api.github.com/repos/crowlebf/round-out/forks","keys_url":"https://api.github.com/repos/crowlebf/round-out/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowlebf/round-out/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowlebf/round-out/teams","hooks_url":"https://api.github.com/repos/crowlebf/round-out/hooks","issue_events_url":"https://api.github.com/repos/crowlebf/round-out/issues/events{/number}","events_url":"https://api.github.com/repos/crowlebf/round-out/events","assignees_url":"https://api.github.com/repos/crowlebf/round-out/assignees{/user}","branches_url":"https://api.github.com/repos/crowlebf/round-out/branches{/branch}","tags_url":"https://api.github.com/repos/crowlebf/round-out/tags","blobs_url":"https://api.github.com/repos/crowlebf/round-out/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowlebf/round-out/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowlebf/round-out/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowlebf/round-out/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowlebf/round-out/statuses/{sha}","languages_url":"https://api.github.com/repos/crowlebf/round-out/languages","stargazers_url":"https://api.github.com/repos/crowlebf/round-out/stargazers","contributors_url":"https://api.github.com/repos/crowlebf/round-out/contributors","subscribers_url":"https://api.github.com/repos/crowlebf/round-out/subscribers","subscription_url":"https://api.github.com/repos/crowlebf/round-out/subscription","commits_url":"https://api.github.com/repos/crowlebf/round-out/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowlebf/round-out/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowlebf/round-out/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowlebf/round-out/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowlebf/round-out/contents/{+path}","compare_url":"https://api.github.com/repos/crowlebf/round-out/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowlebf/round-out/merges","archive_url":"https://api.github.com/repos/crowlebf/round-out/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowlebf/round-out/downloads","issues_url":"https://api.github.com/repos/crowlebf/round-out/issues{/number}","pulls_url":"https://api.github.com/repos/crowlebf/round-out/pulls{/number}","milestones_url":"https://api.github.com/repos/crowlebf/round-out/milestones{/number}","notifications_url":"https://api.github.com/repos/crowlebf/round-out/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowlebf/round-out/labels{/name}","releases_url":"https://api.github.com/repos/crowlebf/round-out/releases{/id}","deployments_url":"https://api.github.com/repos/crowlebf/round-out/deployments","created_at":"2016-01-13T02:51:51Z","updated_at":"2016-01-13T05:20:14Z","pushed_at":"2016-01-22T21:47:45Z","git_url":"git://github.com/crowlebf/round-out.git","ssh_url":"git@github.com:crowlebf/round-out.git","clone_url":"https://github.com/crowlebf/round-out.git","svn_url":"https://github.com/crowlebf/round-out","homepage":null,"size":839,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowlebf/round-out/pulls/7"},"html":{"href":"https://github.com/crowlebf/round-out/pull/7"},"issue":{"href":"https://api.github.com/repos/crowlebf/round-out/issues/7"},"comments":{"href":"https://api.github.com/repos/crowlebf/round-out/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/crowlebf/round-out/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/crowlebf/round-out/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowlebf/round-out/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/crowlebf/round-out/statuses/88e88d98f55266e05a38fd4924e54765560aa05b"}}}}