{"action":"created","comment":{"url":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments/26444592","id":26444592,"diff_hunk":"@@ -0,0 +1,51 @@\n+# encoding: utf-8\n+\n+class AvatarUploader < CarrierWave::Uploader::Base\n+\n+  # Include RMagick or MiniMagick support:\n+   include CarrierWave::RMagick\n+  # include CarrierWave::MiniMagick\n+\n+  # Choose what kind of storage to use for this uploader:\n+  storage :file\n+  # storage :fog\n+\n+  # Override the directory where uploaded files will be stored.\n+  # This is a sensible default for uploaders that are meant to be mounted:\n+  #def store_dir\n+    #\"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}\"\n+  #end\n+\n+  # Provide a default URL as a default if there hasn't been a file uploaded:\n+   def default_url\n+     # For Rails 3.1+ asset pipeline compatibility:\n+      #ActionController::Base.helpers.asset_path(\"images/\" + [version_name, \"default_toast.jpg\"].compact.join('_'))\n+      \"default_toast.jpg\"\n+     #\"/images/\" + [version_name, \"default_toast.jpg\"].compact.join('_')\n+   end\n+\n+  # Process files as they are uploaded:\n+   process :resize_to_fit => [500, 600]\n+  #\n+  # def scale(width, height)\n+  #   # do something\n+  # end\n+\n+  # Create different versions of your uploaded files:\n+   version :thumb do\n+     process :resize_to_fit => [200, 200]\n+   end\n+\n+  # Add a white list of extensions which are allowed to be uploaded.\n+  # For images you might use something like this:\n+   #def extension_white_list\n+     #%w(jpg jpeg gif png)\n+   #end\n+\n+  # Override the filename of the uploaded files:\n+  # Avoid using model.id or version_name here, see uploader/store.rb for details.","path":"app/uploaders/avatar_uploader.rb","position":46,"original_position":46,"commit_id":"4d634a60f6d60450514a70c4e868386632316e30","original_commit_id":"4d634a60f6d60450514a70c4e868386632316e30","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":"Line is too long. [81/80]","created_at":"2015-03-15T04:59:21Z","updated_at":"2015-03-15T04:59:21Z","html_url":"https://github.com/neslom/dinner_dash/pull/72#discussion_r26444592","pull_request_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments/26444592"},"html":{"href":"https://github.com/neslom/dinner_dash/pull/72#discussion_r26444592"},"pull_request":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/neslom/dinner_dash/pulls/72","id":31195473,"html_url":"https://github.com/neslom/dinner_dash/pull/72","diff_url":"https://github.com/neslom/dinner_dash/pull/72.diff","patch_url":"https://github.com/neslom/dinner_dash/pull/72.patch","issue_url":"https://api.github.com/repos/neslom/dinner_dash/issues/72","number":72,"state":"open","locked":false,"title":"018 manage items","user":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-15T04:59:14Z","updated_at":"2015-03-15T04:59:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9297feca72407b82d5c5d08b5a283c4e64203a7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/72/commits","review_comments_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/72/comments","review_comment_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neslom/dinner_dash/issues/72/comments","statuses_url":"https://api.github.com/repos/neslom/dinner_dash/statuses/4d634a60f6d60450514a70c4e868386632316e30","head":{"label":"neslom:018_manage_items","ref":"018_manage_items","sha":"4d634a60f6d60450514a70c4e868386632316e30","user":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"repo":{"id":31906336,"name":"dinner_dash","full_name":"neslom/dinner_dash","owner":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neslom/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/neslom/dinner_dash","forks_url":"https://api.github.com/repos/neslom/dinner_dash/forks","keys_url":"https://api.github.com/repos/neslom/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neslom/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neslom/dinner_dash/teams","hooks_url":"https://api.github.com/repos/neslom/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/neslom/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/neslom/dinner_dash/events","assignees_url":"https://api.github.com/repos/neslom/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/neslom/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/neslom/dinner_dash/tags","blobs_url":"https://api.github.com/repos/neslom/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neslom/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neslom/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/neslom/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neslom/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/neslom/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/neslom/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/neslom/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/neslom/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/neslom/dinner_dash/subscription","commits_url":"https://api.github.com/repos/neslom/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/neslom/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/neslom/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/neslom/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/neslom/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/neslom/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neslom/dinner_dash/merges","archive_url":"https://api.github.com/repos/neslom/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neslom/dinner_dash/downloads","issues_url":"https://api.github.com/repos/neslom/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/neslom/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/neslom/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/neslom/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neslom/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/neslom/dinner_dash/releases{/id}","created_at":"2015-03-09T15:28:39Z","updated_at":"2015-03-15T01:36:16Z","pushed_at":"2015-03-15T04:58:57Z","git_url":"git://github.com/neslom/dinner_dash.git","ssh_url":"git@github.com:neslom/dinner_dash.git","clone_url":"https://github.com/neslom/dinner_dash.git","svn_url":"https://github.com/neslom/dinner_dash","homepage":null,"size":917,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"neslom:master","ref":"master","sha":"939632a6b2f22e7b88a757b1693c3b69db593c17","user":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"repo":{"id":31906336,"name":"dinner_dash","full_name":"neslom/dinner_dash","owner":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neslom/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/neslom/dinner_dash","forks_url":"https://api.github.com/repos/neslom/dinner_dash/forks","keys_url":"https://api.github.com/repos/neslom/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neslom/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neslom/dinner_dash/teams","hooks_url":"https://api.github.com/repos/neslom/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/neslom/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/neslom/dinner_dash/events","assignees_url":"https://api.github.com/repos/neslom/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/neslom/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/neslom/dinner_dash/tags","blobs_url":"https://api.github.com/repos/neslom/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neslom/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neslom/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/neslom/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neslom/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/neslom/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/neslom/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/neslom/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/neslom/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/neslom/dinner_dash/subscription","commits_url":"https://api.github.com/repos/neslom/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/neslom/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/neslom/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/neslom/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/neslom/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/neslom/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neslom/dinner_dash/merges","archive_url":"https://api.github.com/repos/neslom/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neslom/dinner_dash/downloads","issues_url":"https://api.github.com/repos/neslom/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/neslom/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/neslom/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/neslom/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neslom/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/neslom/dinner_dash/releases{/id}","created_at":"2015-03-09T15:28:39Z","updated_at":"2015-03-15T01:36:16Z","pushed_at":"2015-03-15T04:58:57Z","git_url":"git://github.com/neslom/dinner_dash.git","ssh_url":"git@github.com:neslom/dinner_dash.git","clone_url":"https://github.com/neslom/dinner_dash.git","svn_url":"https://github.com/neslom/dinner_dash","homepage":null,"size":917,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/72"},"html":{"href":"https://github.com/neslom/dinner_dash/pull/72"},"issue":{"href":"https://api.github.com/repos/neslom/dinner_dash/issues/72"},"comments":{"href":"https://api.github.com/repos/neslom/dinner_dash/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/neslom/dinner_dash/statuses/4d634a60f6d60450514a70c4e868386632316e30"}}}}