{"action":"created","comment":{"url":"https://api.github.com/repos/cpsoinos/ACES/pulls/comments/28012616","id":28012616,"diff_hunk":"@@ -0,0 +1,59 @@\n+# encoding: utf-8\n+\n+class PhotoUploader < CarrierWave::Uploader::Base\n+\n+  # Include RMagick or MiniMagick support:\n+  # include CarrierWave::RMagick\n+  include CarrierWave::MiniMagick\n+\n+  process resize_to_fit: [800, 800]\n+  version :thumb do\n+    process resize_to_fill: [200, 200]\n+  end\n+  version :small_thumb, from_version: :thumb do\n+    process resize_to_fill: [20, 20]\n+  end\n+\n+  if Rails.env.production? || Rails.env.development?\n+    storage :fog\n+  else\n+    storage :file\n+  end\n+\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(\"fallback/\" + [version_name, \"default.png\"].compact.join('_'))\n+  #\n+  #   \"/images/fallback/\" + [version_name, \"default.png\"].compact.join('_')\n+  # end\n+\n+  # Process files as they are uploaded:\n+  # process :scale => [200, 300]\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 => [50, 50]\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/photo_uploader.rb","position":54,"original_position":54,"commit_id":"aec1fbd4a2651b899f12a2f911ddc6df292b503a","original_commit_id":"aec1fbd4a2651b899f12a2f911ddc6df292b503a","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-04-08T21:00:23Z","updated_at":"2015-04-08T21:00:23Z","html_url":"https://github.com/cpsoinos/ACES/pull/12#discussion_r28012616","pull_request_url":"https://api.github.com/repos/cpsoinos/ACES/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/cpsoinos/ACES/pulls/comments/28012616"},"html":{"href":"https://github.com/cpsoinos/ACES/pull/12#discussion_r28012616"},"pull_request":{"href":"https://api.github.com/repos/cpsoinos/ACES/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/cpsoinos/ACES/pulls/12","id":32901514,"html_url":"https://github.com/cpsoinos/ACES/pull/12","diff_url":"https://github.com/cpsoinos/ACES/pull/12.diff","patch_url":"https://github.com/cpsoinos/ACES/pull/12.patch","issue_url":"https://api.github.com/repos/cpsoinos/ACES/issues/12","number":12,"state":"open","locked":false,"title":"WIP_Er at restaurant photos","user":{"login":"Sean911","id":8600119,"avatar_url":"https://avatars.githubusercontent.com/u/8600119?v=3","gravatar_id":"","url":"https://api.github.com/users/Sean911","html_url":"https://github.com/Sean911","followers_url":"https://api.github.com/users/Sean911/followers","following_url":"https://api.github.com/users/Sean911/following{/other_user}","gists_url":"https://api.github.com/users/Sean911/gists{/gist_id}","starred_url":"https://api.github.com/users/Sean911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sean911/subscriptions","organizations_url":"https://api.github.com/users/Sean911/orgs","repos_url":"https://api.github.com/users/Sean911/repos","events_url":"https://api.github.com/users/Sean911/events{/privacy}","received_events_url":"https://api.github.com/users/Sean911/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-08T21:00:11Z","updated_at":"2015-04-08T21:00:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6f03f85a4e206df9df102d5ab0c5081d6d5ea1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cpsoinos/ACES/pulls/12/commits","review_comments_url":"https://api.github.com/repos/cpsoinos/ACES/pulls/12/comments","review_comment_url":"https://api.github.com/repos/cpsoinos/ACES/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cpsoinos/ACES/issues/12/comments","statuses_url":"https://api.github.com/repos/cpsoinos/ACES/statuses/aec1fbd4a2651b899f12a2f911ddc6df292b503a","head":{"label":"cpsoinos:er_at_restaurant_photos","ref":"er_at_restaurant_photos","sha":"aec1fbd4a2651b899f12a2f911ddc6df292b503a","user":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"repo":{"id":33130536,"name":"ACES","full_name":"cpsoinos/ACES","owner":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cpsoinos/ACES","description":"Group Project","fork":false,"url":"https://api.github.com/repos/cpsoinos/ACES","forks_url":"https://api.github.com/repos/cpsoinos/ACES/forks","keys_url":"https://api.github.com/repos/cpsoinos/ACES/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpsoinos/ACES/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpsoinos/ACES/teams","hooks_url":"https://api.github.com/repos/cpsoinos/ACES/hooks","issue_events_url":"https://api.github.com/repos/cpsoinos/ACES/issues/events{/number}","events_url":"https://api.github.com/repos/cpsoinos/ACES/events","assignees_url":"https://api.github.com/repos/cpsoinos/ACES/assignees{/user}","branches_url":"https://api.github.com/repos/cpsoinos/ACES/branches{/branch}","tags_url":"https://api.github.com/repos/cpsoinos/ACES/tags","blobs_url":"https://api.github.com/repos/cpsoinos/ACES/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpsoinos/ACES/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpsoinos/ACES/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpsoinos/ACES/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpsoinos/ACES/statuses/{sha}","languages_url":"https://api.github.com/repos/cpsoinos/ACES/languages","stargazers_url":"https://api.github.com/repos/cpsoinos/ACES/stargazers","contributors_url":"https://api.github.com/repos/cpsoinos/ACES/contributors","subscribers_url":"https://api.github.com/repos/cpsoinos/ACES/subscribers","subscription_url":"https://api.github.com/repos/cpsoinos/ACES/subscription","commits_url":"https://api.github.com/repos/cpsoinos/ACES/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpsoinos/ACES/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpsoinos/ACES/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpsoinos/ACES/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpsoinos/ACES/contents/{+path}","compare_url":"https://api.github.com/repos/cpsoinos/ACES/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpsoinos/ACES/merges","archive_url":"https://api.github.com/repos/cpsoinos/ACES/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpsoinos/ACES/downloads","issues_url":"https://api.github.com/repos/cpsoinos/ACES/issues{/number}","pulls_url":"https://api.github.com/repos/cpsoinos/ACES/pulls{/number}","milestones_url":"https://api.github.com/repos/cpsoinos/ACES/milestones{/number}","notifications_url":"https://api.github.com/repos/cpsoinos/ACES/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpsoinos/ACES/labels{/name}","releases_url":"https://api.github.com/repos/cpsoinos/ACES/releases{/id}","created_at":"2015-03-30T15:12:05Z","updated_at":"2015-04-08T19:02:51Z","pushed_at":"2015-04-08T21:00:12Z","git_url":"git://github.com/cpsoinos/ACES.git","ssh_url":"git@github.com:cpsoinos/ACES.git","clone_url":"https://github.com/cpsoinos/ACES.git","svn_url":"https://github.com/cpsoinos/ACES","homepage":null,"size":344,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cpsoinos:master","ref":"master","sha":"f058e47d72bcfb18517e83cc38c1c32ba2dc86b6","user":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"repo":{"id":33130536,"name":"ACES","full_name":"cpsoinos/ACES","owner":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cpsoinos/ACES","description":"Group Project","fork":false,"url":"https://api.github.com/repos/cpsoinos/ACES","forks_url":"https://api.github.com/repos/cpsoinos/ACES/forks","keys_url":"https://api.github.com/repos/cpsoinos/ACES/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpsoinos/ACES/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpsoinos/ACES/teams","hooks_url":"https://api.github.com/repos/cpsoinos/ACES/hooks","issue_events_url":"https://api.github.com/repos/cpsoinos/ACES/issues/events{/number}","events_url":"https://api.github.com/repos/cpsoinos/ACES/events","assignees_url":"https://api.github.com/repos/cpsoinos/ACES/assignees{/user}","branches_url":"https://api.github.com/repos/cpsoinos/ACES/branches{/branch}","tags_url":"https://api.github.com/repos/cpsoinos/ACES/tags","blobs_url":"https://api.github.com/repos/cpsoinos/ACES/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpsoinos/ACES/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpsoinos/ACES/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpsoinos/ACES/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpsoinos/ACES/statuses/{sha}","languages_url":"https://api.github.com/repos/cpsoinos/ACES/languages","stargazers_url":"https://api.github.com/repos/cpsoinos/ACES/stargazers","contributors_url":"https://api.github.com/repos/cpsoinos/ACES/contributors","subscribers_url":"https://api.github.com/repos/cpsoinos/ACES/subscribers","subscription_url":"https://api.github.com/repos/cpsoinos/ACES/subscription","commits_url":"https://api.github.com/repos/cpsoinos/ACES/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpsoinos/ACES/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpsoinos/ACES/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpsoinos/ACES/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpsoinos/ACES/contents/{+path}","compare_url":"https://api.github.com/repos/cpsoinos/ACES/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpsoinos/ACES/merges","archive_url":"https://api.github.com/repos/cpsoinos/ACES/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpsoinos/ACES/downloads","issues_url":"https://api.github.com/repos/cpsoinos/ACES/issues{/number}","pulls_url":"https://api.github.com/repos/cpsoinos/ACES/pulls{/number}","milestones_url":"https://api.github.com/repos/cpsoinos/ACES/milestones{/number}","notifications_url":"https://api.github.com/repos/cpsoinos/ACES/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpsoinos/ACES/labels{/name}","releases_url":"https://api.github.com/repos/cpsoinos/ACES/releases{/id}","created_at":"2015-03-30T15:12:05Z","updated_at":"2015-04-08T19:02:51Z","pushed_at":"2015-04-08T21:00:12Z","git_url":"git://github.com/cpsoinos/ACES.git","ssh_url":"git@github.com:cpsoinos/ACES.git","clone_url":"https://github.com/cpsoinos/ACES.git","svn_url":"https://github.com/cpsoinos/ACES","homepage":null,"size":344,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cpsoinos/ACES/pulls/12"},"html":{"href":"https://github.com/cpsoinos/ACES/pull/12"},"issue":{"href":"https://api.github.com/repos/cpsoinos/ACES/issues/12"},"comments":{"href":"https://api.github.com/repos/cpsoinos/ACES/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/cpsoinos/ACES/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/cpsoinos/ACES/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cpsoinos/ACES/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/cpsoinos/ACES/statuses/aec1fbd4a2651b899f12a2f911ddc6df292b503a"}}}}