{"action":"created","comment":{"url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/comments/23946990","id":23946990,"diff_hunk":"@@ -1,3 +1,9 @@\n class Upload < ActiveRecord::Base\n   has_attached_file :uploaded_file, styles: { original: \"4000x4000>\", large: \"1500x1500>\", medium: \"300x300>\", small: \"200x200>\", thumb: \"100x100>\" }, default_url: \"/images/:style/missing.png\"\n-end\n+  validates_attachment_content_type :uploaded_file, \n+  content_type: [\n+  \"image/jpg\", \n+  \"image/jpeg\", \n+  \"image/png\", ","path":"app/models/upload.rb","position":8,"original_position":8,"commit_id":"b8ca2cd054e19851c79c71be59e06df1b681bf70","original_commit_id":"b8ca2cd054e19851c79c71be59e06df1b681bf70","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":"Trailing whitespace detected.","created_at":"2015-02-02T18:45:07Z","updated_at":"2015-02-02T18:45:07Z","html_url":"https://github.com/5minpause/multiple-file-upload/pull/7#discussion_r23946990","pull_request_url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/comments/23946990"},"html":{"href":"https://github.com/5minpause/multiple-file-upload/pull/7#discussion_r23946990"},"pull_request":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7","id":28491572,"html_url":"https://github.com/5minpause/multiple-file-upload/pull/7","diff_url":"https://github.com/5minpause/multiple-file-upload/pull/7.diff","patch_url":"https://github.com/5minpause/multiple-file-upload/pull/7.patch","issue_url":"https://api.github.com/repos/5minpause/multiple-file-upload/issues/7","number":7,"state":"open","locked":false,"title":"Feature/update with jquery turbolinks and attachment validation","user":{"login":"Qbd","id":3983532,"avatar_url":"https://avatars.githubusercontent.com/u/3983532?v=3","gravatar_id":"","url":"https://api.github.com/users/Qbd","html_url":"https://github.com/Qbd","followers_url":"https://api.github.com/users/Qbd/followers","following_url":"https://api.github.com/users/Qbd/following{/other_user}","gists_url":"https://api.github.com/users/Qbd/gists{/gist_id}","starred_url":"https://api.github.com/users/Qbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qbd/subscriptions","organizations_url":"https://api.github.com/users/Qbd/orgs","repos_url":"https://api.github.com/users/Qbd/repos","events_url":"https://api.github.com/users/Qbd/events{/privacy}","received_events_url":"https://api.github.com/users/Qbd/received_events","type":"User","site_admin":false},"body":"These are the changes I had to make in order to get the test app up and running.\r\nThese changes include:\r\n1) Adding JQuery-Turbolinks gem\r\n2) changing the app.css to .css.scss format in order to import the bootstrap-sass stylesheets (didn't add the JS as was only aiming to test functionality and this didn't seem to be neccessary)\r\n3) Changes DB configuration to SQLite as bundling gave an error (I don't think I have MySQL installed on my mac)","created_at":"2015-02-02T18:38:10Z","updated_at":"2015-02-02T18:45:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc82aa8f00b040bc56029af9158151e23ca80d09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7/commits","review_comments_url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7/comments","review_comment_url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/comments/{number}","comments_url":"https://api.github.com/repos/5minpause/multiple-file-upload/issues/7/comments","statuses_url":"https://api.github.com/repos/5minpause/multiple-file-upload/statuses/b8ca2cd054e19851c79c71be59e06df1b681bf70","head":{"label":"Qbd:feature/update_with_jquery_turbolinks_and_attachment_validation","ref":"feature/update_with_jquery_turbolinks_and_attachment_validation","sha":"b8ca2cd054e19851c79c71be59e06df1b681bf70","user":{"login":"Qbd","id":3983532,"avatar_url":"https://avatars.githubusercontent.com/u/3983532?v=3","gravatar_id":"","url":"https://api.github.com/users/Qbd","html_url":"https://github.com/Qbd","followers_url":"https://api.github.com/users/Qbd/followers","following_url":"https://api.github.com/users/Qbd/following{/other_user}","gists_url":"https://api.github.com/users/Qbd/gists{/gist_id}","starred_url":"https://api.github.com/users/Qbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qbd/subscriptions","organizations_url":"https://api.github.com/users/Qbd/orgs","repos_url":"https://api.github.com/users/Qbd/repos","events_url":"https://api.github.com/users/Qbd/events{/privacy}","received_events_url":"https://api.github.com/users/Qbd/received_events","type":"User","site_admin":false},"repo":{"id":30116091,"name":"multiple-file-upload","full_name":"Qbd/multiple-file-upload","owner":{"login":"Qbd","id":3983532,"avatar_url":"https://avatars.githubusercontent.com/u/3983532?v=3","gravatar_id":"","url":"https://api.github.com/users/Qbd","html_url":"https://github.com/Qbd","followers_url":"https://api.github.com/users/Qbd/followers","following_url":"https://api.github.com/users/Qbd/following{/other_user}","gists_url":"https://api.github.com/users/Qbd/gists{/gist_id}","starred_url":"https://api.github.com/users/Qbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qbd/subscriptions","organizations_url":"https://api.github.com/users/Qbd/orgs","repos_url":"https://api.github.com/users/Qbd/repos","events_url":"https://api.github.com/users/Qbd/events{/privacy}","received_events_url":"https://api.github.com/users/Qbd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Qbd/multiple-file-upload","description":"This is the accompanying repository for the blog post at http://5minutenpause.com/blog/2013/09/04/multiple-file-upload-with-jquery-rails-4-and-paperclip/","fork":true,"url":"https://api.github.com/repos/Qbd/multiple-file-upload","forks_url":"https://api.github.com/repos/Qbd/multiple-file-upload/forks","keys_url":"https://api.github.com/repos/Qbd/multiple-file-upload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Qbd/multiple-file-upload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Qbd/multiple-file-upload/teams","hooks_url":"https://api.github.com/repos/Qbd/multiple-file-upload/hooks","issue_events_url":"https://api.github.com/repos/Qbd/multiple-file-upload/issues/events{/number}","events_url":"https://api.github.com/repos/Qbd/multiple-file-upload/events","assignees_url":"https://api.github.com/repos/Qbd/multiple-file-upload/assignees{/user}","branches_url":"https://api.github.com/repos/Qbd/multiple-file-upload/branches{/branch}","tags_url":"https://api.github.com/repos/Qbd/multiple-file-upload/tags","blobs_url":"https://api.github.com/repos/Qbd/multiple-file-upload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Qbd/multiple-file-upload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Qbd/multiple-file-upload/git/refs{/sha}","trees_url":"https://api.github.com/repos/Qbd/multiple-file-upload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Qbd/multiple-file-upload/statuses/{sha}","languages_url":"https://api.github.com/repos/Qbd/multiple-file-upload/languages","stargazers_url":"https://api.github.com/repos/Qbd/multiple-file-upload/stargazers","contributors_url":"https://api.github.com/repos/Qbd/multiple-file-upload/contributors","subscribers_url":"https://api.github.com/repos/Qbd/multiple-file-upload/subscribers","subscription_url":"https://api.github.com/repos/Qbd/multiple-file-upload/subscription","commits_url":"https://api.github.com/repos/Qbd/multiple-file-upload/commits{/sha}","git_commits_url":"https://api.github.com/repos/Qbd/multiple-file-upload/git/commits{/sha}","comments_url":"https://api.github.com/repos/Qbd/multiple-file-upload/comments{/number}","issue_comment_url":"https://api.github.com/repos/Qbd/multiple-file-upload/issues/comments/{number}","contents_url":"https://api.github.com/repos/Qbd/multiple-file-upload/contents/{+path}","compare_url":"https://api.github.com/repos/Qbd/multiple-file-upload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Qbd/multiple-file-upload/merges","archive_url":"https://api.github.com/repos/Qbd/multiple-file-upload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Qbd/multiple-file-upload/downloads","issues_url":"https://api.github.com/repos/Qbd/multiple-file-upload/issues{/number}","pulls_url":"https://api.github.com/repos/Qbd/multiple-file-upload/pulls{/number}","milestones_url":"https://api.github.com/repos/Qbd/multiple-file-upload/milestones{/number}","notifications_url":"https://api.github.com/repos/Qbd/multiple-file-upload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Qbd/multiple-file-upload/labels{/name}","releases_url":"https://api.github.com/repos/Qbd/multiple-file-upload/releases{/id}","created_at":"2015-01-31T15:24:08Z","updated_at":"2015-02-02T12:42:11Z","pushed_at":"2015-02-02T18:44:57Z","git_url":"git://github.com/Qbd/multiple-file-upload.git","ssh_url":"git@github.com:Qbd/multiple-file-upload.git","clone_url":"https://github.com/Qbd/multiple-file-upload.git","svn_url":"https://github.com/Qbd/multiple-file-upload","homepage":null,"size":127,"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":"5minpause:master","ref":"master","sha":"fa9fe6acaa5ecf963945b7e28dc66ba1e242bfd4","user":{"login":"5minpause","id":84148,"avatar_url":"https://avatars.githubusercontent.com/u/84148?v=3","gravatar_id":"","url":"https://api.github.com/users/5minpause","html_url":"https://github.com/5minpause","followers_url":"https://api.github.com/users/5minpause/followers","following_url":"https://api.github.com/users/5minpause/following{/other_user}","gists_url":"https://api.github.com/users/5minpause/gists{/gist_id}","starred_url":"https://api.github.com/users/5minpause/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5minpause/subscriptions","organizations_url":"https://api.github.com/users/5minpause/orgs","repos_url":"https://api.github.com/users/5minpause/repos","events_url":"https://api.github.com/users/5minpause/events{/privacy}","received_events_url":"https://api.github.com/users/5minpause/received_events","type":"User","site_admin":false},"repo":{"id":13801525,"name":"multiple-file-upload","full_name":"5minpause/multiple-file-upload","owner":{"login":"5minpause","id":84148,"avatar_url":"https://avatars.githubusercontent.com/u/84148?v=3","gravatar_id":"","url":"https://api.github.com/users/5minpause","html_url":"https://github.com/5minpause","followers_url":"https://api.github.com/users/5minpause/followers","following_url":"https://api.github.com/users/5minpause/following{/other_user}","gists_url":"https://api.github.com/users/5minpause/gists{/gist_id}","starred_url":"https://api.github.com/users/5minpause/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5minpause/subscriptions","organizations_url":"https://api.github.com/users/5minpause/orgs","repos_url":"https://api.github.com/users/5minpause/repos","events_url":"https://api.github.com/users/5minpause/events{/privacy}","received_events_url":"https://api.github.com/users/5minpause/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/5minpause/multiple-file-upload","description":"This is the accompanying repository for the blog post at http://5minutenpause.com/blog/2013/09/04/multiple-file-upload-with-jquery-rails-4-and-paperclip/","fork":false,"url":"https://api.github.com/repos/5minpause/multiple-file-upload","forks_url":"https://api.github.com/repos/5minpause/multiple-file-upload/forks","keys_url":"https://api.github.com/repos/5minpause/multiple-file-upload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/5minpause/multiple-file-upload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/5minpause/multiple-file-upload/teams","hooks_url":"https://api.github.com/repos/5minpause/multiple-file-upload/hooks","issue_events_url":"https://api.github.com/repos/5minpause/multiple-file-upload/issues/events{/number}","events_url":"https://api.github.com/repos/5minpause/multiple-file-upload/events","assignees_url":"https://api.github.com/repos/5minpause/multiple-file-upload/assignees{/user}","branches_url":"https://api.github.com/repos/5minpause/multiple-file-upload/branches{/branch}","tags_url":"https://api.github.com/repos/5minpause/multiple-file-upload/tags","blobs_url":"https://api.github.com/repos/5minpause/multiple-file-upload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/5minpause/multiple-file-upload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/5minpause/multiple-file-upload/git/refs{/sha}","trees_url":"https://api.github.com/repos/5minpause/multiple-file-upload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/5minpause/multiple-file-upload/statuses/{sha}","languages_url":"https://api.github.com/repos/5minpause/multiple-file-upload/languages","stargazers_url":"https://api.github.com/repos/5minpause/multiple-file-upload/stargazers","contributors_url":"https://api.github.com/repos/5minpause/multiple-file-upload/contributors","subscribers_url":"https://api.github.com/repos/5minpause/multiple-file-upload/subscribers","subscription_url":"https://api.github.com/repos/5minpause/multiple-file-upload/subscription","commits_url":"https://api.github.com/repos/5minpause/multiple-file-upload/commits{/sha}","git_commits_url":"https://api.github.com/repos/5minpause/multiple-file-upload/git/commits{/sha}","comments_url":"https://api.github.com/repos/5minpause/multiple-file-upload/comments{/number}","issue_comment_url":"https://api.github.com/repos/5minpause/multiple-file-upload/issues/comments/{number}","contents_url":"https://api.github.com/repos/5minpause/multiple-file-upload/contents/{+path}","compare_url":"https://api.github.com/repos/5minpause/multiple-file-upload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/5minpause/multiple-file-upload/merges","archive_url":"https://api.github.com/repos/5minpause/multiple-file-upload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/5minpause/multiple-file-upload/downloads","issues_url":"https://api.github.com/repos/5minpause/multiple-file-upload/issues{/number}","pulls_url":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls{/number}","milestones_url":"https://api.github.com/repos/5minpause/multiple-file-upload/milestones{/number}","notifications_url":"https://api.github.com/repos/5minpause/multiple-file-upload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/5minpause/multiple-file-upload/labels{/name}","releases_url":"https://api.github.com/repos/5minpause/multiple-file-upload/releases{/id}","created_at":"2013-10-23T11:57:53Z","updated_at":"2015-01-20T14:47:49Z","pushed_at":"2014-11-20T14:23:09Z","git_url":"git://github.com/5minpause/multiple-file-upload.git","ssh_url":"git@github.com:5minpause/multiple-file-upload.git","clone_url":"https://github.com/5minpause/multiple-file-upload.git","svn_url":"https://github.com/5minpause/multiple-file-upload","homepage":null,"size":225,"stargazers_count":33,"watchers_count":33,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":1,"forks":24,"open_issues":1,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7"},"html":{"href":"https://github.com/5minpause/multiple-file-upload/pull/7"},"issue":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/issues/7"},"comments":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/5minpause/multiple-file-upload/statuses/b8ca2cd054e19851c79c71be59e06df1b681bf70"}}}}