{"action":"created","comment":{"url":"https://api.github.com/repos/fender707/shop/pulls/comments/22815674","id":22815674,"diff_hunk":"@@ -0,0 +1,68 @@\n+class ProductsController < ApplicationController\n+\n+   # GET /reviews\n+# GET /reviews.json\n+  def index\n+    @products = Product.all\n+  end\n+# GET /reviews/1\n+# GET /reviews/1.json\n+  def show\n+    @product = Product.find(params[:id])","path":"app/controllers/products_controller.rb","position":11,"original_position":11,"commit_id":"0570bf802fcedfe6f5148d5cce4feeddfc8067d6","original_commit_id":"0570bf802fcedfe6f5148d5cce4feeddfc8067d6","user":{"login":"MasalitinMaksim","id":2112332,"avatar_url":"https://avatars.githubusercontent.com/u/2112332?v=3","gravatar_id":"","url":"https://api.github.com/users/MasalitinMaksim","html_url":"https://github.com/MasalitinMaksim","followers_url":"https://api.github.com/users/MasalitinMaksim/followers","following_url":"https://api.github.com/users/MasalitinMaksim/following{/other_user}","gists_url":"https://api.github.com/users/MasalitinMaksim/gists{/gist_id}","starred_url":"https://api.github.com/users/MasalitinMaksim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasalitinMaksim/subscriptions","organizations_url":"https://api.github.com/users/MasalitinMaksim/orgs","repos_url":"https://api.github.com/users/MasalitinMaksim/repos","events_url":"https://api.github.com/users/MasalitinMaksim/events{/privacy}","received_events_url":"https://api.github.com/users/MasalitinMaksim/received_events","type":"User","site_admin":false},"body":"Испорльзуйте фильр для повторяющегося код","created_at":"2015-01-12T19:43:21Z","updated_at":"2015-01-12T19:43:21Z","html_url":"https://github.com/fender707/shop/pull/15#discussion_r22815674","pull_request_url":"https://api.github.com/repos/fender707/shop/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/fender707/shop/pulls/comments/22815674"},"html":{"href":"https://github.com/fender707/shop/pull/15#discussion_r22815674"},"pull_request":{"href":"https://api.github.com/repos/fender707/shop/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/fender707/shop/pulls/15","id":26627968,"html_url":"https://github.com/fender707/shop/pull/15","diff_url":"https://github.com/fender707/shop/pull/15.diff","patch_url":"https://github.com/fender707/shop/pull/15.patch","issue_url":"https://api.github.com/repos/fender707/shop/issues/15","number":15,"state":"open","locked":false,"title":"Dev","user":{"login":"fender707","id":3475696,"avatar_url":"https://avatars.githubusercontent.com/u/3475696?v=3","gravatar_id":"","url":"https://api.github.com/users/fender707","html_url":"https://github.com/fender707","followers_url":"https://api.github.com/users/fender707/followers","following_url":"https://api.github.com/users/fender707/following{/other_user}","gists_url":"https://api.github.com/users/fender707/gists{/gist_id}","starred_url":"https://api.github.com/users/fender707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fender707/subscriptions","organizations_url":"https://api.github.com/users/fender707/orgs","repos_url":"https://api.github.com/users/fender707/repos","events_url":"https://api.github.com/users/fender707/events{/privacy}","received_events_url":"https://api.github.com/users/fender707/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-28T21:31:16Z","updated_at":"2015-01-12T19:43:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5812d60d11c20411d578b73b5e8ffe88fa1e9f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fender707/shop/pulls/15/commits","review_comments_url":"https://api.github.com/repos/fender707/shop/pulls/15/comments","review_comment_url":"https://api.github.com/repos/fender707/shop/pulls/comments/{number}","comments_url":"https://api.github.com/repos/fender707/shop/issues/15/comments","statuses_url":"https://api.github.com/repos/fender707/shop/statuses/0570bf802fcedfe6f5148d5cce4feeddfc8067d6","head":{"label":"fender707:dev","ref":"dev","sha":"0570bf802fcedfe6f5148d5cce4feeddfc8067d6","user":{"login":"fender707","id":3475696,"avatar_url":"https://avatars.githubusercontent.com/u/3475696?v=3","gravatar_id":"","url":"https://api.github.com/users/fender707","html_url":"https://github.com/fender707","followers_url":"https://api.github.com/users/fender707/followers","following_url":"https://api.github.com/users/fender707/following{/other_user}","gists_url":"https://api.github.com/users/fender707/gists{/gist_id}","starred_url":"https://api.github.com/users/fender707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fender707/subscriptions","organizations_url":"https://api.github.com/users/fender707/orgs","repos_url":"https://api.github.com/users/fender707/repos","events_url":"https://api.github.com/users/fender707/events{/privacy}","received_events_url":"https://api.github.com/users/fender707/received_events","type":"User","site_admin":false},"repo":{"id":28243256,"name":"shop","full_name":"fender707/shop","owner":{"login":"fender707","id":3475696,"avatar_url":"https://avatars.githubusercontent.com/u/3475696?v=3","gravatar_id":"","url":"https://api.github.com/users/fender707","html_url":"https://github.com/fender707","followers_url":"https://api.github.com/users/fender707/followers","following_url":"https://api.github.com/users/fender707/following{/other_user}","gists_url":"https://api.github.com/users/fender707/gists{/gist_id}","starred_url":"https://api.github.com/users/fender707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fender707/subscriptions","organizations_url":"https://api.github.com/users/fender707/orgs","repos_url":"https://api.github.com/users/fender707/repos","events_url":"https://api.github.com/users/fender707/events{/privacy}","received_events_url":"https://api.github.com/users/fender707/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fender707/shop","description":"Shop. Ruby_bursa learning","fork":false,"url":"https://api.github.com/repos/fender707/shop","forks_url":"https://api.github.com/repos/fender707/shop/forks","keys_url":"https://api.github.com/repos/fender707/shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fender707/shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fender707/shop/teams","hooks_url":"https://api.github.com/repos/fender707/shop/hooks","issue_events_url":"https://api.github.com/repos/fender707/shop/issues/events{/number}","events_url":"https://api.github.com/repos/fender707/shop/events","assignees_url":"https://api.github.com/repos/fender707/shop/assignees{/user}","branches_url":"https://api.github.com/repos/fender707/shop/branches{/branch}","tags_url":"https://api.github.com/repos/fender707/shop/tags","blobs_url":"https://api.github.com/repos/fender707/shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fender707/shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fender707/shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/fender707/shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fender707/shop/statuses/{sha}","languages_url":"https://api.github.com/repos/fender707/shop/languages","stargazers_url":"https://api.github.com/repos/fender707/shop/stargazers","contributors_url":"https://api.github.com/repos/fender707/shop/contributors","subscribers_url":"https://api.github.com/repos/fender707/shop/subscribers","subscription_url":"https://api.github.com/repos/fender707/shop/subscription","commits_url":"https://api.github.com/repos/fender707/shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/fender707/shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/fender707/shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/fender707/shop/issues/comments/{number}","contents_url":"https://api.github.com/repos/fender707/shop/contents/{+path}","compare_url":"https://api.github.com/repos/fender707/shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fender707/shop/merges","archive_url":"https://api.github.com/repos/fender707/shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fender707/shop/downloads","issues_url":"https://api.github.com/repos/fender707/shop/issues{/number}","pulls_url":"https://api.github.com/repos/fender707/shop/pulls{/number}","milestones_url":"https://api.github.com/repos/fender707/shop/milestones{/number}","notifications_url":"https://api.github.com/repos/fender707/shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fender707/shop/labels{/name}","releases_url":"https://api.github.com/repos/fender707/shop/releases{/id}","created_at":"2014-12-19T19:32:12Z","updated_at":"2014-12-26T20:03:14Z","pushed_at":"2015-01-11T20:14:41Z","git_url":"git://github.com/fender707/shop.git","ssh_url":"git@github.com:fender707/shop.git","clone_url":"https://github.com/fender707/shop.git","svn_url":"https://github.com/fender707/shop","homepage":null,"size":1668,"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":"fender707:master","ref":"master","sha":"b4ce1774147aa049e45f164ae32bf644ce2b9924","user":{"login":"fender707","id":3475696,"avatar_url":"https://avatars.githubusercontent.com/u/3475696?v=3","gravatar_id":"","url":"https://api.github.com/users/fender707","html_url":"https://github.com/fender707","followers_url":"https://api.github.com/users/fender707/followers","following_url":"https://api.github.com/users/fender707/following{/other_user}","gists_url":"https://api.github.com/users/fender707/gists{/gist_id}","starred_url":"https://api.github.com/users/fender707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fender707/subscriptions","organizations_url":"https://api.github.com/users/fender707/orgs","repos_url":"https://api.github.com/users/fender707/repos","events_url":"https://api.github.com/users/fender707/events{/privacy}","received_events_url":"https://api.github.com/users/fender707/received_events","type":"User","site_admin":false},"repo":{"id":28243256,"name":"shop","full_name":"fender707/shop","owner":{"login":"fender707","id":3475696,"avatar_url":"https://avatars.githubusercontent.com/u/3475696?v=3","gravatar_id":"","url":"https://api.github.com/users/fender707","html_url":"https://github.com/fender707","followers_url":"https://api.github.com/users/fender707/followers","following_url":"https://api.github.com/users/fender707/following{/other_user}","gists_url":"https://api.github.com/users/fender707/gists{/gist_id}","starred_url":"https://api.github.com/users/fender707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fender707/subscriptions","organizations_url":"https://api.github.com/users/fender707/orgs","repos_url":"https://api.github.com/users/fender707/repos","events_url":"https://api.github.com/users/fender707/events{/privacy}","received_events_url":"https://api.github.com/users/fender707/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fender707/shop","description":"Shop. Ruby_bursa learning","fork":false,"url":"https://api.github.com/repos/fender707/shop","forks_url":"https://api.github.com/repos/fender707/shop/forks","keys_url":"https://api.github.com/repos/fender707/shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fender707/shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fender707/shop/teams","hooks_url":"https://api.github.com/repos/fender707/shop/hooks","issue_events_url":"https://api.github.com/repos/fender707/shop/issues/events{/number}","events_url":"https://api.github.com/repos/fender707/shop/events","assignees_url":"https://api.github.com/repos/fender707/shop/assignees{/user}","branches_url":"https://api.github.com/repos/fender707/shop/branches{/branch}","tags_url":"https://api.github.com/repos/fender707/shop/tags","blobs_url":"https://api.github.com/repos/fender707/shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fender707/shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fender707/shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/fender707/shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fender707/shop/statuses/{sha}","languages_url":"https://api.github.com/repos/fender707/shop/languages","stargazers_url":"https://api.github.com/repos/fender707/shop/stargazers","contributors_url":"https://api.github.com/repos/fender707/shop/contributors","subscribers_url":"https://api.github.com/repos/fender707/shop/subscribers","subscription_url":"https://api.github.com/repos/fender707/shop/subscription","commits_url":"https://api.github.com/repos/fender707/shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/fender707/shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/fender707/shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/fender707/shop/issues/comments/{number}","contents_url":"https://api.github.com/repos/fender707/shop/contents/{+path}","compare_url":"https://api.github.com/repos/fender707/shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fender707/shop/merges","archive_url":"https://api.github.com/repos/fender707/shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fender707/shop/downloads","issues_url":"https://api.github.com/repos/fender707/shop/issues{/number}","pulls_url":"https://api.github.com/repos/fender707/shop/pulls{/number}","milestones_url":"https://api.github.com/repos/fender707/shop/milestones{/number}","notifications_url":"https://api.github.com/repos/fender707/shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fender707/shop/labels{/name}","releases_url":"https://api.github.com/repos/fender707/shop/releases{/id}","created_at":"2014-12-19T19:32:12Z","updated_at":"2014-12-26T20:03:14Z","pushed_at":"2015-01-11T20:14:41Z","git_url":"git://github.com/fender707/shop.git","ssh_url":"git@github.com:fender707/shop.git","clone_url":"https://github.com/fender707/shop.git","svn_url":"https://github.com/fender707/shop","homepage":null,"size":1668,"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/fender707/shop/pulls/15"},"html":{"href":"https://github.com/fender707/shop/pull/15"},"issue":{"href":"https://api.github.com/repos/fender707/shop/issues/15"},"comments":{"href":"https://api.github.com/repos/fender707/shop/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/fender707/shop/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/fender707/shop/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/fender707/shop/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/fender707/shop/statuses/0570bf802fcedfe6f5148d5cce4feeddfc8067d6"}}}}