{"action":"created","comment":{"url":"https://api.github.com/repos/parvathyv/rubbit/pulls/comments/22425207","id":22425207,"diff_hunk":"@@ -0,0 +1,42 @@\n+module Admin\n+  class ArticlesController < ApplicationController\n+  \tbefore_filter :admin_authorize!\n+  \tdef index\n+  \t\t@article = Article.all\n+    end\t\t\n+  \tdef new\n+  \t\t@article = Article.new\n+  \tend\t\n+    \n+  \tdef destroy\n+  \t\t\n+\t\t\t @article = Article.find(params[:id])\n+\t\t\t \n+\t\t\t\t@article = Article.find(params[:id]).destroy\n+\t\t\t\t\n+\t\t\t\tif Article.exists?(@article) == false\n+\t\t\t\t\t\n+\t\t\t\t\tredirect_to articles_path, :notice => \"Article successfully deleted\"\n+\t\t\t\telse\n+\t\t\t\t\trender :edit, :notice => \"Article did not delete\"\n+\t\t\t\t\n+\t\t\tend\t\n+    end\n+\n+    def edit\n+\n+\t\t\t@article = Article.find(params[:id])\n+\t  end\n+\n+\t  def update\n+\t\t  @article = Article.find(params[:id])\n+\t\t\tif @article.update_attributes(article_params)\n+\t\t\t\tredirect_to edit_article_path, :notice => \"Article successfully edited\"\n+\t\t\telse\n+\t\t\t\trender :edit, :notice => \"Article did not update\"","path":"app/controllers/admin/articles_controller.rb","position":36,"original_position":36,"commit_id":"f20dee468892a42790b91c7767cef90d40f4fe38","original_commit_id":"f20dee468892a42790b91c7767cef90d40f4fe38","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":"Use the new Ruby 1.9 hash syntax.<br>Use 2 (not 1) spaces for indentation.<br>Tab detected.","created_at":"2015-01-02T22:29:24Z","updated_at":"2015-01-02T22:29:24Z","html_url":"https://github.com/parvathyv/rubbit/pull/8#discussion_r22425207","pull_request_url":"https://api.github.com/repos/parvathyv/rubbit/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/parvathyv/rubbit/pulls/comments/22425207"},"html":{"href":"https://github.com/parvathyv/rubbit/pull/8#discussion_r22425207"},"pull_request":{"href":"https://api.github.com/repos/parvathyv/rubbit/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/parvathyv/rubbit/pulls/8","id":26773782,"html_url":"https://github.com/parvathyv/rubbit/pull/8","diff_url":"https://github.com/parvathyv/rubbit/pull/8.diff","patch_url":"https://github.com/parvathyv/rubbit/pull/8.patch","issue_url":"https://api.github.com/repos/parvathyv/rubbit/issues/8","number":8,"state":"open","locked":false,"title":"Namespace","user":{"login":"parvathyv","id":8750739,"avatar_url":"https://avatars.githubusercontent.com/u/8750739?v=3","gravatar_id":"","url":"https://api.github.com/users/parvathyv","html_url":"https://github.com/parvathyv","followers_url":"https://api.github.com/users/parvathyv/followers","following_url":"https://api.github.com/users/parvathyv/following{/other_user}","gists_url":"https://api.github.com/users/parvathyv/gists{/gist_id}","starred_url":"https://api.github.com/users/parvathyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parvathyv/subscriptions","organizations_url":"https://api.github.com/users/parvathyv/orgs","repos_url":"https://api.github.com/users/parvathyv/repos","events_url":"https://api.github.com/users/parvathyv/events{/privacy}","received_events_url":"https://api.github.com/users/parvathyv/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-02T22:29:12Z","updated_at":"2015-01-02T22:29:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eee39ab24b4acb7b9ad1ab5f148a022cec859b5d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/parvathyv/rubbit/pulls/8/commits","review_comments_url":"https://api.github.com/repos/parvathyv/rubbit/pulls/8/comments","review_comment_url":"https://api.github.com/repos/parvathyv/rubbit/pulls/comments/{number}","comments_url":"https://api.github.com/repos/parvathyv/rubbit/issues/8/comments","statuses_url":"https://api.github.com/repos/parvathyv/rubbit/statuses/f20dee468892a42790b91c7767cef90d40f4fe38","head":{"label":"parvathyv:namespace","ref":"namespace","sha":"f20dee468892a42790b91c7767cef90d40f4fe38","user":{"login":"parvathyv","id":8750739,"avatar_url":"https://avatars.githubusercontent.com/u/8750739?v=3","gravatar_id":"","url":"https://api.github.com/users/parvathyv","html_url":"https://github.com/parvathyv","followers_url":"https://api.github.com/users/parvathyv/followers","following_url":"https://api.github.com/users/parvathyv/following{/other_user}","gists_url":"https://api.github.com/users/parvathyv/gists{/gist_id}","starred_url":"https://api.github.com/users/parvathyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parvathyv/subscriptions","organizations_url":"https://api.github.com/users/parvathyv/orgs","repos_url":"https://api.github.com/users/parvathyv/repos","events_url":"https://api.github.com/users/parvathyv/events{/privacy}","received_events_url":"https://api.github.com/users/parvathyv/received_events","type":"User","site_admin":false},"repo":{"id":28603216,"name":"rubbit","full_name":"parvathyv/rubbit","owner":{"login":"parvathyv","id":8750739,"avatar_url":"https://avatars.githubusercontent.com/u/8750739?v=3","gravatar_id":"","url":"https://api.github.com/users/parvathyv","html_url":"https://github.com/parvathyv","followers_url":"https://api.github.com/users/parvathyv/followers","following_url":"https://api.github.com/users/parvathyv/following{/other_user}","gists_url":"https://api.github.com/users/parvathyv/gists{/gist_id}","starred_url":"https://api.github.com/users/parvathyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parvathyv/subscriptions","organizations_url":"https://api.github.com/users/parvathyv/orgs","repos_url":"https://api.github.com/users/parvathyv/repos","events_url":"https://api.github.com/users/parvathyv/events{/privacy}","received_events_url":"https://api.github.com/users/parvathyv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parvathyv/rubbit","description":"","fork":false,"url":"https://api.github.com/repos/parvathyv/rubbit","forks_url":"https://api.github.com/repos/parvathyv/rubbit/forks","keys_url":"https://api.github.com/repos/parvathyv/rubbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parvathyv/rubbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parvathyv/rubbit/teams","hooks_url":"https://api.github.com/repos/parvathyv/rubbit/hooks","issue_events_url":"https://api.github.com/repos/parvathyv/rubbit/issues/events{/number}","events_url":"https://api.github.com/repos/parvathyv/rubbit/events","assignees_url":"https://api.github.com/repos/parvathyv/rubbit/assignees{/user}","branches_url":"https://api.github.com/repos/parvathyv/rubbit/branches{/branch}","tags_url":"https://api.github.com/repos/parvathyv/rubbit/tags","blobs_url":"https://api.github.com/repos/parvathyv/rubbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parvathyv/rubbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parvathyv/rubbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/parvathyv/rubbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parvathyv/rubbit/statuses/{sha}","languages_url":"https://api.github.com/repos/parvathyv/rubbit/languages","stargazers_url":"https://api.github.com/repos/parvathyv/rubbit/stargazers","contributors_url":"https://api.github.com/repos/parvathyv/rubbit/contributors","subscribers_url":"https://api.github.com/repos/parvathyv/rubbit/subscribers","subscription_url":"https://api.github.com/repos/parvathyv/rubbit/subscription","commits_url":"https://api.github.com/repos/parvathyv/rubbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/parvathyv/rubbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/parvathyv/rubbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/parvathyv/rubbit/issues/comments/{number}","contents_url":"https://api.github.com/repos/parvathyv/rubbit/contents/{+path}","compare_url":"https://api.github.com/repos/parvathyv/rubbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parvathyv/rubbit/merges","archive_url":"https://api.github.com/repos/parvathyv/rubbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parvathyv/rubbit/downloads","issues_url":"https://api.github.com/repos/parvathyv/rubbit/issues{/number}","pulls_url":"https://api.github.com/repos/parvathyv/rubbit/pulls{/number}","milestones_url":"https://api.github.com/repos/parvathyv/rubbit/milestones{/number}","notifications_url":"https://api.github.com/repos/parvathyv/rubbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parvathyv/rubbit/labels{/name}","releases_url":"https://api.github.com/repos/parvathyv/rubbit/releases{/id}","created_at":"2014-12-29T19:17:30Z","updated_at":"2015-01-02T22:22:50Z","pushed_at":"2015-01-02T22:28:50Z","git_url":"git://github.com/parvathyv/rubbit.git","ssh_url":"git@github.com:parvathyv/rubbit.git","clone_url":"https://github.com/parvathyv/rubbit.git","svn_url":"https://github.com/parvathyv/rubbit","homepage":null,"size":0,"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":"parvathyv:master","ref":"master","sha":"ba14887d2ca4cdb5ec55bf73fe0e7f7938994f41","user":{"login":"parvathyv","id":8750739,"avatar_url":"https://avatars.githubusercontent.com/u/8750739?v=3","gravatar_id":"","url":"https://api.github.com/users/parvathyv","html_url":"https://github.com/parvathyv","followers_url":"https://api.github.com/users/parvathyv/followers","following_url":"https://api.github.com/users/parvathyv/following{/other_user}","gists_url":"https://api.github.com/users/parvathyv/gists{/gist_id}","starred_url":"https://api.github.com/users/parvathyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parvathyv/subscriptions","organizations_url":"https://api.github.com/users/parvathyv/orgs","repos_url":"https://api.github.com/users/parvathyv/repos","events_url":"https://api.github.com/users/parvathyv/events{/privacy}","received_events_url":"https://api.github.com/users/parvathyv/received_events","type":"User","site_admin":false},"repo":{"id":28603216,"name":"rubbit","full_name":"parvathyv/rubbit","owner":{"login":"parvathyv","id":8750739,"avatar_url":"https://avatars.githubusercontent.com/u/8750739?v=3","gravatar_id":"","url":"https://api.github.com/users/parvathyv","html_url":"https://github.com/parvathyv","followers_url":"https://api.github.com/users/parvathyv/followers","following_url":"https://api.github.com/users/parvathyv/following{/other_user}","gists_url":"https://api.github.com/users/parvathyv/gists{/gist_id}","starred_url":"https://api.github.com/users/parvathyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parvathyv/subscriptions","organizations_url":"https://api.github.com/users/parvathyv/orgs","repos_url":"https://api.github.com/users/parvathyv/repos","events_url":"https://api.github.com/users/parvathyv/events{/privacy}","received_events_url":"https://api.github.com/users/parvathyv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parvathyv/rubbit","description":"","fork":false,"url":"https://api.github.com/repos/parvathyv/rubbit","forks_url":"https://api.github.com/repos/parvathyv/rubbit/forks","keys_url":"https://api.github.com/repos/parvathyv/rubbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parvathyv/rubbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parvathyv/rubbit/teams","hooks_url":"https://api.github.com/repos/parvathyv/rubbit/hooks","issue_events_url":"https://api.github.com/repos/parvathyv/rubbit/issues/events{/number}","events_url":"https://api.github.com/repos/parvathyv/rubbit/events","assignees_url":"https://api.github.com/repos/parvathyv/rubbit/assignees{/user}","branches_url":"https://api.github.com/repos/parvathyv/rubbit/branches{/branch}","tags_url":"https://api.github.com/repos/parvathyv/rubbit/tags","blobs_url":"https://api.github.com/repos/parvathyv/rubbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parvathyv/rubbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parvathyv/rubbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/parvathyv/rubbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parvathyv/rubbit/statuses/{sha}","languages_url":"https://api.github.com/repos/parvathyv/rubbit/languages","stargazers_url":"https://api.github.com/repos/parvathyv/rubbit/stargazers","contributors_url":"https://api.github.com/repos/parvathyv/rubbit/contributors","subscribers_url":"https://api.github.com/repos/parvathyv/rubbit/subscribers","subscription_url":"https://api.github.com/repos/parvathyv/rubbit/subscription","commits_url":"https://api.github.com/repos/parvathyv/rubbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/parvathyv/rubbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/parvathyv/rubbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/parvathyv/rubbit/issues/comments/{number}","contents_url":"https://api.github.com/repos/parvathyv/rubbit/contents/{+path}","compare_url":"https://api.github.com/repos/parvathyv/rubbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parvathyv/rubbit/merges","archive_url":"https://api.github.com/repos/parvathyv/rubbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parvathyv/rubbit/downloads","issues_url":"https://api.github.com/repos/parvathyv/rubbit/issues{/number}","pulls_url":"https://api.github.com/repos/parvathyv/rubbit/pulls{/number}","milestones_url":"https://api.github.com/repos/parvathyv/rubbit/milestones{/number}","notifications_url":"https://api.github.com/repos/parvathyv/rubbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parvathyv/rubbit/labels{/name}","releases_url":"https://api.github.com/repos/parvathyv/rubbit/releases{/id}","created_at":"2014-12-29T19:17:30Z","updated_at":"2015-01-02T22:22:50Z","pushed_at":"2015-01-02T22:28:50Z","git_url":"git://github.com/parvathyv/rubbit.git","ssh_url":"git@github.com:parvathyv/rubbit.git","clone_url":"https://github.com/parvathyv/rubbit.git","svn_url":"https://github.com/parvathyv/rubbit","homepage":null,"size":0,"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/parvathyv/rubbit/pulls/8"},"html":{"href":"https://github.com/parvathyv/rubbit/pull/8"},"issue":{"href":"https://api.github.com/repos/parvathyv/rubbit/issues/8"},"comments":{"href":"https://api.github.com/repos/parvathyv/rubbit/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/parvathyv/rubbit/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/parvathyv/rubbit/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/parvathyv/rubbit/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/parvathyv/rubbit/statuses/f20dee468892a42790b91c7767cef90d40f4fe38"}}}}