{"action":"created","comment":{"url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/comments/43318579","id":43318579,"diff_hunk":"@@ -0,0 +1,12 @@\n+class Picture < ActiveRecord::Base\n+  belongs_to :user\n+  has_many :comments, dependent: :destroy\n+\n+  has_attached_file :image,\n+                    styles: {medium: \"300x300>\", thumb: \"100x100>\"},\n+                    :storage => :s3,\n+                    :bucket  => ENV['S3_BUCKET_NAME'],\n+                    default_url: ':style/monkey.png'\n+  validates_attachment_content_type :image, content_type: /\\Aimage\\/.*\\Z/\n+  validates_with AttachmentSizeValidator, attributes: :image, less_than: 500.kilobytes","path":"app/models/picture.rb","position":11,"original_position":11,"commit_id":"0607f6c25f7c042158b825e5ab3bffdefba1379c","original_commit_id":"0607f6c25f7c042158b825e5ab3bffdefba1379c","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":"Metrics/LineLength: Line is too long. [86/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)","created_at":"2015-10-28T21:10:02Z","updated_at":"2015-10-28T21:10:02Z","html_url":"https://github.com/MakersSweden/instagram-challenge/pull/3#discussion_r43318579","pull_request_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/comments/43318579"},"html":{"href":"https://github.com/MakersSweden/instagram-challenge/pull/3#discussion_r43318579"},"pull_request":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3","id":48692327,"html_url":"https://github.com/MakersSweden/instagram-challenge/pull/3","diff_url":"https://github.com/MakersSweden/instagram-challenge/pull/3.diff","patch_url":"https://github.com/MakersSweden/instagram-challenge/pull/3.patch","issue_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues/3","number":3,"state":"open","locked":false,"title":"WIP: Works Locally, But Not on Heroku (yet)","user":{"login":"chrisco","id":37781,"avatar_url":"https://avatars.githubusercontent.com/u/37781?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisco","html_url":"https://github.com/chrisco","followers_url":"https://api.github.com/users/chrisco/followers","following_url":"https://api.github.com/users/chrisco/following{/other_user}","gists_url":"https://api.github.com/users/chrisco/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisco/subscriptions","organizations_url":"https://api.github.com/users/chrisco/orgs","repos_url":"https://api.github.com/users/chrisco/repos","events_url":"https://api.github.com/users/chrisco/events{/privacy}","received_events_url":"https://api.github.com/users/chrisco/received_events","type":"User","site_admin":false},"body":"Still need to write more tests and get Heroku image uploads working.  Also need to go through Thomas's comments to my pull request.  Will do so now (was scared to before because I did't have any tests yet and know that is NOT good).","created_at":"2015-10-26T00:22:23Z","updated_at":"2015-10-28T21:10:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ee0731ac6f11bee0d0d892eee20247ac1fcf978","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3/commits","review_comments_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3/comments","review_comment_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues/3/comments","statuses_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/statuses/0607f6c25f7c042158b825e5ab3bffdefba1379c","head":{"label":"chrisco:master","ref":"master","sha":"0607f6c25f7c042158b825e5ab3bffdefba1379c","user":{"login":"chrisco","id":37781,"avatar_url":"https://avatars.githubusercontent.com/u/37781?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisco","html_url":"https://github.com/chrisco","followers_url":"https://api.github.com/users/chrisco/followers","following_url":"https://api.github.com/users/chrisco/following{/other_user}","gists_url":"https://api.github.com/users/chrisco/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisco/subscriptions","organizations_url":"https://api.github.com/users/chrisco/orgs","repos_url":"https://api.github.com/users/chrisco/repos","events_url":"https://api.github.com/users/chrisco/events{/privacy}","received_events_url":"https://api.github.com/users/chrisco/received_events","type":"User","site_admin":false},"repo":{"id":44808386,"name":"instagram-challenge","full_name":"chrisco/instagram-challenge","owner":{"login":"chrisco","id":37781,"avatar_url":"https://avatars.githubusercontent.com/u/37781?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisco","html_url":"https://github.com/chrisco","followers_url":"https://api.github.com/users/chrisco/followers","following_url":"https://api.github.com/users/chrisco/following{/other_user}","gists_url":"https://api.github.com/users/chrisco/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisco/subscriptions","organizations_url":"https://api.github.com/users/chrisco/orgs","repos_url":"https://api.github.com/users/chrisco/repos","events_url":"https://api.github.com/users/chrisco/events{/privacy}","received_events_url":"https://api.github.com/users/chrisco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisco/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/chrisco/instagram-challenge","forks_url":"https://api.github.com/repos/chrisco/instagram-challenge/forks","keys_url":"https://api.github.com/repos/chrisco/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisco/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisco/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/chrisco/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/chrisco/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/chrisco/instagram-challenge/events","assignees_url":"https://api.github.com/repos/chrisco/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/chrisco/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/chrisco/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/chrisco/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisco/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisco/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisco/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisco/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisco/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/chrisco/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/chrisco/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/chrisco/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/chrisco/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/chrisco/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisco/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisco/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisco/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisco/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/chrisco/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisco/instagram-challenge/merges","archive_url":"https://api.github.com/repos/chrisco/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisco/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/chrisco/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/chrisco/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisco/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisco/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisco/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/chrisco/instagram-challenge/releases{/id}","created_at":"2015-10-23T11:12:53Z","updated_at":"2015-10-28T11:24:21Z","pushed_at":"2015-10-28T21:09:50Z","git_url":"git://github.com/chrisco/instagram-challenge.git","ssh_url":"git@github.com:chrisco/instagram-challenge.git","clone_url":"https://github.com/chrisco/instagram-challenge.git","svn_url":"https://github.com/chrisco/instagram-challenge","homepage":null,"size":6623,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"MakersSweden:master","ref":"master","sha":"0e2d6dd6595f5397c8036deb439fcd88b28e5873","user":{"login":"MakersSweden","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/MakersSweden","html_url":"https://github.com/MakersSweden","followers_url":"https://api.github.com/users/MakersSweden/followers","following_url":"https://api.github.com/users/MakersSweden/following{/other_user}","gists_url":"https://api.github.com/users/MakersSweden/gists{/gist_id}","starred_url":"https://api.github.com/users/MakersSweden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakersSweden/subscriptions","organizations_url":"https://api.github.com/users/MakersSweden/orgs","repos_url":"https://api.github.com/users/MakersSweden/repos","events_url":"https://api.github.com/users/MakersSweden/events{/privacy}","received_events_url":"https://api.github.com/users/MakersSweden/received_events","type":"Organization","site_admin":false},"repo":{"id":44799531,"name":"instagram-challenge","full_name":"MakersSweden/instagram-challenge","owner":{"login":"MakersSweden","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/MakersSweden","html_url":"https://github.com/MakersSweden","followers_url":"https://api.github.com/users/MakersSweden/followers","following_url":"https://api.github.com/users/MakersSweden/following{/other_user}","gists_url":"https://api.github.com/users/MakersSweden/gists{/gist_id}","starred_url":"https://api.github.com/users/MakersSweden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakersSweden/subscriptions","organizations_url":"https://api.github.com/users/MakersSweden/orgs","repos_url":"https://api.github.com/users/MakersSweden/repos","events_url":"https://api.github.com/users/MakersSweden/events{/privacy}","received_events_url":"https://api.github.com/users/MakersSweden/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MakersSweden/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/MakersSweden/instagram-challenge","forks_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/forks","keys_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/events","assignees_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/merges","archive_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/MakersSweden/instagram-challenge/releases{/id}","created_at":"2015-10-23T08:07:44Z","updated_at":"2015-04-02T15:05:17Z","pushed_at":"2015-10-28T21:09:51Z","git_url":"git://github.com/MakersSweden/instagram-challenge.git","ssh_url":"git@github.com:MakersSweden/instagram-challenge.git","clone_url":"https://github.com/MakersSweden/instagram-challenge.git","svn_url":"https://github.com/MakersSweden/instagram-challenge","homepage":null,"size":7418,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3"},"html":{"href":"https://github.com/MakersSweden/instagram-challenge/pull/3"},"issue":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues/3"},"comments":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/MakersSweden/instagram-challenge/statuses/0607f6c25f7c042158b825e5ab3bffdefba1379c"}}}}