{"action":"created","comment":{"url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/comments/49952937","id":49952937,"diff_hunk":"@@ -0,0 +1,56 @@\n+# encoding: utf-8\n+\n+class ImageUploader < CarrierWave::Uploader::Base\n+\n+  # Include RMagick or MiniMagick support:\n+  include CarrierWave::RMagick\n+  # include CarrierWave::MiniMagick\n+\n+  process resize_to_fit: [360, 360]\n+\n+  # Choose what kind of storage to use for this uploader:\n+  storage :file\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+  def content_type_whitelist\n+    /image\\//\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('_'))","path":"app/uploaders/image_uploader.rb","position":27,"original_position":27,"commit_id":"e761c6c47b6ee8522d41a15a61e7634d92c26943","original_commit_id":"e761c6c47b6ee8522d41a15a61e7634d92c26943","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. [112/80]","created_at":"2016-01-17T21:37:46Z","updated_at":"2016-01-17T21:37:46Z","html_url":"https://github.com/RomanKrasavtsev/Flashcards/pull/11#discussion_r49952937","pull_request_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/comments/49952937"},"html":{"href":"https://github.com/RomanKrasavtsev/Flashcards/pull/11#discussion_r49952937"},"pull_request":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11","id":56288174,"html_url":"https://github.com/RomanKrasavtsev/Flashcards/pull/11","diff_url":"https://github.com/RomanKrasavtsev/Flashcards/pull/11.diff","patch_url":"https://github.com/RomanKrasavtsev/Flashcards/pull/11.patch","issue_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/11","number":11,"state":"open","locked":false,"title":"tenth-task","user":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-17T21:37:43Z","updated_at":"2016-01-17T21:37:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2814acf369d6ad722a8b4fc859c0a513b39dc5ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11/commits","review_comments_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11/comments","review_comment_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/11/comments","statuses_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/statuses/e761c6c47b6ee8522d41a15a61e7634d92c26943","head":{"label":"RomanKrasavtsev:tenth-task","ref":"tenth-task","sha":"e761c6c47b6ee8522d41a15a61e7634d92c26943","user":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"repo":{"id":42648096,"name":"Flashcards","full_name":"RomanKrasavtsev/Flashcards","owner":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RomanKrasavtsev/Flashcards","description":"","fork":false,"url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards","forks_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/forks","keys_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/teams","hooks_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/hooks","issue_events_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/events","assignees_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/tags","blobs_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/languages","stargazers_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/stargazers","contributors_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/contributors","subscribers_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/subscribers","subscription_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/subscription","commits_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/merges","archive_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/downloads","issues_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/labels{/name}","releases_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/releases{/id}","created_at":"2015-09-17T09:44:47Z","updated_at":"2016-01-12T21:08:52Z","pushed_at":"2016-01-17T21:37:43Z","git_url":"git://github.com/RomanKrasavtsev/Flashcards.git","ssh_url":"git@github.com:RomanKrasavtsev/Flashcards.git","clone_url":"https://github.com/RomanKrasavtsev/Flashcards.git","svn_url":"https://github.com/RomanKrasavtsev/Flashcards","homepage":"","size":990,"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":"RomanKrasavtsev:master","ref":"master","sha":"0d4c8417102d873814493b74e34e5f6157d295e6","user":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"repo":{"id":42648096,"name":"Flashcards","full_name":"RomanKrasavtsev/Flashcards","owner":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RomanKrasavtsev/Flashcards","description":"","fork":false,"url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards","forks_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/forks","keys_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/teams","hooks_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/hooks","issue_events_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/events","assignees_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/tags","blobs_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/languages","stargazers_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/stargazers","contributors_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/contributors","subscribers_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/subscribers","subscription_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/subscription","commits_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/merges","archive_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/downloads","issues_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/labels{/name}","releases_url":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/releases{/id}","created_at":"2015-09-17T09:44:47Z","updated_at":"2016-01-12T21:08:52Z","pushed_at":"2016-01-17T21:37:43Z","git_url":"git://github.com/RomanKrasavtsev/Flashcards.git","ssh_url":"git@github.com:RomanKrasavtsev/Flashcards.git","clone_url":"https://github.com/RomanKrasavtsev/Flashcards.git","svn_url":"https://github.com/RomanKrasavtsev/Flashcards","homepage":"","size":990,"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/RomanKrasavtsev/Flashcards/pulls/11"},"html":{"href":"https://github.com/RomanKrasavtsev/Flashcards/pull/11"},"issue":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/11"},"comments":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/RomanKrasavtsev/Flashcards/statuses/e761c6c47b6ee8522d41a15a61e7634d92c26943"}}}}