{"action":"created","comment":{"url":"https://api.github.com/repos/neslom/contact-manager/pulls/comments/25564000","id":25564000,"diff_hunk":"@@ -0,0 +1,74 @@\n+class CompaniesController < ApplicationController\n+  before_action :set_company, only: [:show, :edit, :update, :destroy]\n+\n+  # GET /companies\n+  # GET /companies.json\n+  def index\n+    @companies = Company.all\n+  end\n+\n+  # GET /companies/1\n+  # GET /companies/1.json\n+  def show\n+  end\n+\n+  # GET /companies/new\n+  def new\n+    @company = Company.new\n+  end\n+\n+  # GET /companies/1/edit\n+  def edit\n+  end\n+\n+  # POST /companies\n+  # POST /companies.json\n+  def create\n+    @company = Company.new(company_params)\n+\n+    respond_to do |format|\n+      if @company.save\n+        format.html { redirect_to @company, notice: 'Company was successfully created.' }\n+        format.json { render :show, status: :created, location: @company }\n+      else\n+        format.html { render :new }\n+        format.json { render json: @company.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # PATCH/PUT /companies/1\n+  # PATCH/PUT /companies/1.json\n+  def update\n+    respond_to do |format|\n+      if @company.update(company_params)\n+        format.html { redirect_to @company, notice: 'Company was successfully updated.' }\n+        format.json { render :show, status: :ok, location: @company }\n+      else\n+        format.html { render :edit }\n+        format.json { render json: @company.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # DELETE /companies/1\n+  # DELETE /companies/1.json\n+  def destroy\n+    @company.destroy\n+    respond_to do |format|\n+      format.html { redirect_to companies_url, notice: 'Company was successfully destroyed.' }\n+      format.json { head :no_content }\n+    end\n+  end\n+\n+  private","path":"app/controllers/companies_controller.rb","position":64,"original_position":64,"commit_id":"b5f7eb6a51408d76165703e0ba2a21f8e8b44617","original_commit_id":"b5f7eb6a51408d76165703e0ba2a21f8e8b44617","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":"Keep a blank line before and after `private`.","created_at":"2015-03-01T04:34:26Z","updated_at":"2015-03-01T04:34:26Z","html_url":"https://github.com/neslom/contact-manager/pull/6#discussion_r25564000","pull_request_url":"https://api.github.com/repos/neslom/contact-manager/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/neslom/contact-manager/pulls/comments/25564000"},"html":{"href":"https://github.com/neslom/contact-manager/pull/6#discussion_r25564000"},"pull_request":{"href":"https://api.github.com/repos/neslom/contact-manager/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/neslom/contact-manager/pulls/6","id":30236780,"html_url":"https://github.com/neslom/contact-manager/pull/6","diff_url":"https://github.com/neslom/contact-manager/pull/6.diff","patch_url":"https://github.com/neslom/contact-manager/pull/6.patch","issue_url":"https://api.github.com/repos/neslom/contact-manager/issues/6","number":6,"state":"open","locked":false,"title":"Implement companies","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-01T04:34:21Z","updated_at":"2015-03-01T04:34:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12e5a03c0d411f4de4ff30b469a9d8fcbf28ec6e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neslom/contact-manager/pulls/6/commits","review_comments_url":"https://api.github.com/repos/neslom/contact-manager/pulls/6/comments","review_comment_url":"https://api.github.com/repos/neslom/contact-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neslom/contact-manager/issues/6/comments","statuses_url":"https://api.github.com/repos/neslom/contact-manager/statuses/b5f7eb6a51408d76165703e0ba2a21f8e8b44617","head":{"label":"neslom:implement-companies","ref":"implement-companies","sha":"b5f7eb6a51408d76165703e0ba2a21f8e8b44617","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":31397257,"name":"contact-manager","full_name":"neslom/contact-manager","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/contact-manager","description":"","fork":false,"url":"https://api.github.com/repos/neslom/contact-manager","forks_url":"https://api.github.com/repos/neslom/contact-manager/forks","keys_url":"https://api.github.com/repos/neslom/contact-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neslom/contact-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neslom/contact-manager/teams","hooks_url":"https://api.github.com/repos/neslom/contact-manager/hooks","issue_events_url":"https://api.github.com/repos/neslom/contact-manager/issues/events{/number}","events_url":"https://api.github.com/repos/neslom/contact-manager/events","assignees_url":"https://api.github.com/repos/neslom/contact-manager/assignees{/user}","branches_url":"https://api.github.com/repos/neslom/contact-manager/branches{/branch}","tags_url":"https://api.github.com/repos/neslom/contact-manager/tags","blobs_url":"https://api.github.com/repos/neslom/contact-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neslom/contact-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neslom/contact-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/neslom/contact-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neslom/contact-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/neslom/contact-manager/languages","stargazers_url":"https://api.github.com/repos/neslom/contact-manager/stargazers","contributors_url":"https://api.github.com/repos/neslom/contact-manager/contributors","subscribers_url":"https://api.github.com/repos/neslom/contact-manager/subscribers","subscription_url":"https://api.github.com/repos/neslom/contact-manager/subscription","commits_url":"https://api.github.com/repos/neslom/contact-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/neslom/contact-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/neslom/contact-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/neslom/contact-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/neslom/contact-manager/contents/{+path}","compare_url":"https://api.github.com/repos/neslom/contact-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neslom/contact-manager/merges","archive_url":"https://api.github.com/repos/neslom/contact-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neslom/contact-manager/downloads","issues_url":"https://api.github.com/repos/neslom/contact-manager/issues{/number}","pulls_url":"https://api.github.com/repos/neslom/contact-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/neslom/contact-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/neslom/contact-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neslom/contact-manager/labels{/name}","releases_url":"https://api.github.com/repos/neslom/contact-manager/releases{/id}","created_at":"2015-02-27T01:10:54Z","updated_at":"2015-02-28T20:38:11Z","pushed_at":"2015-03-01T04:34:10Z","git_url":"git://github.com/neslom/contact-manager.git","ssh_url":"git@github.com:neslom/contact-manager.git","clone_url":"https://github.com/neslom/contact-manager.git","svn_url":"https://github.com/neslom/contact-manager","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":"neslom:master","ref":"master","sha":"48abbd0d53e78842ef80bfd9022bd249c05db793","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":31397257,"name":"contact-manager","full_name":"neslom/contact-manager","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/contact-manager","description":"","fork":false,"url":"https://api.github.com/repos/neslom/contact-manager","forks_url":"https://api.github.com/repos/neslom/contact-manager/forks","keys_url":"https://api.github.com/repos/neslom/contact-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neslom/contact-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neslom/contact-manager/teams","hooks_url":"https://api.github.com/repos/neslom/contact-manager/hooks","issue_events_url":"https://api.github.com/repos/neslom/contact-manager/issues/events{/number}","events_url":"https://api.github.com/repos/neslom/contact-manager/events","assignees_url":"https://api.github.com/repos/neslom/contact-manager/assignees{/user}","branches_url":"https://api.github.com/repos/neslom/contact-manager/branches{/branch}","tags_url":"https://api.github.com/repos/neslom/contact-manager/tags","blobs_url":"https://api.github.com/repos/neslom/contact-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neslom/contact-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neslom/contact-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/neslom/contact-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neslom/contact-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/neslom/contact-manager/languages","stargazers_url":"https://api.github.com/repos/neslom/contact-manager/stargazers","contributors_url":"https://api.github.com/repos/neslom/contact-manager/contributors","subscribers_url":"https://api.github.com/repos/neslom/contact-manager/subscribers","subscription_url":"https://api.github.com/repos/neslom/contact-manager/subscription","commits_url":"https://api.github.com/repos/neslom/contact-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/neslom/contact-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/neslom/contact-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/neslom/contact-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/neslom/contact-manager/contents/{+path}","compare_url":"https://api.github.com/repos/neslom/contact-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neslom/contact-manager/merges","archive_url":"https://api.github.com/repos/neslom/contact-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neslom/contact-manager/downloads","issues_url":"https://api.github.com/repos/neslom/contact-manager/issues{/number}","pulls_url":"https://api.github.com/repos/neslom/contact-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/neslom/contact-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/neslom/contact-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neslom/contact-manager/labels{/name}","releases_url":"https://api.github.com/repos/neslom/contact-manager/releases{/id}","created_at":"2015-02-27T01:10:54Z","updated_at":"2015-02-28T20:38:11Z","pushed_at":"2015-03-01T04:34:10Z","git_url":"git://github.com/neslom/contact-manager.git","ssh_url":"git@github.com:neslom/contact-manager.git","clone_url":"https://github.com/neslom/contact-manager.git","svn_url":"https://github.com/neslom/contact-manager","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/neslom/contact-manager/pulls/6"},"html":{"href":"https://github.com/neslom/contact-manager/pull/6"},"issue":{"href":"https://api.github.com/repos/neslom/contact-manager/issues/6"},"comments":{"href":"https://api.github.com/repos/neslom/contact-manager/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/neslom/contact-manager/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/neslom/contact-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neslom/contact-manager/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/neslom/contact-manager/statuses/b5f7eb6a51408d76165703e0ba2a21f8e8b44617"}}}}