{"action":"created","comment":{"url":"https://api.github.com/repos/fsek/web/pulls/comments/26627615","id":26627615,"diff_hunk":"@@ -0,0 +1,105 @@\n+# encoding:UTF-8\n+class Admin::CafeWorksController < ApplicationController\n+  before_action :authenticate\n+  before_action :set_cafe_work, only: [:edit, :show, :update, :destroy, :remove_worker]\n+  before_action :set_cafe_setup, only: [:setup_create]\n+\n+  def show\n+  end\n+\n+  def new\n+    @cwork = CafeWork.new\n+  end\n+\n+  def edit\n+  end\n+\n+  def create\n+    @cwork = CafeWork.new(c_w_params)\n+    flash[:notice] = 'Cafejobbet skapades, success.' if @cwork.save\n+    respond_with @cwork\n+  end\n+\n+  def update\n+    if @cwork.update(c_w_params)\n+      flash[:notice] = 'Cafejobbet uppdaterades'\n+      redirect_to @cwork\n+    else\n+      render action: :edit\n+    end\n+  end\n+\n+  def destroy\n+    # Id used to hide element\n+    @id = @cwork.id\n+    @cwork.destroy\n+    respond_to do |format|\n+      format.html { redirect_to :hilbert, notice: 'Cafepasset raderades.' }\n+      format.js\n+    end\n+  end\n+\n+  def remove_worker\n+    if !@cwork.clear_worker\n+      render action: show, notice: \"Lyckades inte\"\n+    end\n+  end\n+\n+  def setup\n+    @cwork = CafeWork.new\n+  end\n+\n+  def setup_create","path":"app/controllers/admin/cafe_works_controller.rb","position":52,"original_position":52,"commit_id":"5a692ff314aef3e0f37af4146a382d11bfb4d176","original_commit_id":"5a692ff314aef3e0f37af4146a382d11bfb4d176","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":"Assignment Branch Condition size for setup_create is too high. [21.31/15]","created_at":"2015-03-17T23:44:28Z","updated_at":"2015-03-17T23:44:28Z","html_url":"https://github.com/fsek/web/pull/32#discussion_r26627615","pull_request_url":"https://api.github.com/repos/fsek/web/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/fsek/web/pulls/comments/26627615"},"html":{"href":"https://github.com/fsek/web/pull/32#discussion_r26627615"},"pull_request":{"href":"https://api.github.com/repos/fsek/web/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/fsek/web/pulls/32","id":30955564,"html_url":"https://github.com/fsek/web/pull/32","diff_url":"https://github.com/fsek/web/pull/32.diff","patch_url":"https://github.com/fsek/web/pull/32.patch","issue_url":"https://api.github.com/repos/fsek/web/issues/32","number":32,"state":"open","locked":false,"title":"Merge Cafebokning into master","user":{"login":"Zofz","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/Zofz","html_url":"https://github.com/Zofz","followers_url":"https://api.github.com/users/Zofz/followers","following_url":"https://api.github.com/users/Zofz/following{/other_user}","gists_url":"https://api.github.com/users/Zofz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zofz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zofz/subscriptions","organizations_url":"https://api.github.com/users/Zofz/orgs","repos_url":"https://api.github.com/users/Zofz/repos","events_url":"https://api.github.com/users/Zofz/events{/privacy}","received_events_url":"https://api.github.com/users/Zofz/received_events","type":"User","site_admin":false},"body":"Getting ready to open up the module for working in Hilbert Café, still have some refactor to do, do not merge it before I'm done.\r\n\r\nComments and ideas are great to hear! :D ","created_at":"2015-03-11T15:45:04Z","updated_at":"2015-03-17T23:44:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ee704cc634102e4354d7bbff520e476f42c674b","assignee":{"login":"Zofz","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/Zofz","html_url":"https://github.com/Zofz","followers_url":"https://api.github.com/users/Zofz/followers","following_url":"https://api.github.com/users/Zofz/following{/other_user}","gists_url":"https://api.github.com/users/Zofz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zofz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zofz/subscriptions","organizations_url":"https://api.github.com/users/Zofz/orgs","repos_url":"https://api.github.com/users/Zofz/repos","events_url":"https://api.github.com/users/Zofz/events{/privacy}","received_events_url":"https://api.github.com/users/Zofz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fsek/web/milestones/2","html_url":"https://github.com/fsek/web/milestones/Cafebokning","labels_url":"https://api.github.com/repos/fsek/web/milestones/2/labels","id":990410,"number":2,"title":"Cafebokning","description":null,"creator":{"login":"Zofz","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/Zofz","html_url":"https://github.com/Zofz","followers_url":"https://api.github.com/users/Zofz/followers","following_url":"https://api.github.com/users/Zofz/following{/other_user}","gists_url":"https://api.github.com/users/Zofz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zofz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zofz/subscriptions","organizations_url":"https://api.github.com/users/Zofz/orgs","repos_url":"https://api.github.com/users/Zofz/repos","events_url":"https://api.github.com/users/Zofz/events{/privacy}","received_events_url":"https://api.github.com/users/Zofz/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-02-22T22:47:26Z","updated_at":"2015-03-12T04:39:55Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/fsek/web/pulls/32/commits","review_comments_url":"https://api.github.com/repos/fsek/web/pulls/32/comments","review_comment_url":"https://api.github.com/repos/fsek/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsek/web/issues/32/comments","statuses_url":"https://api.github.com/repos/fsek/web/statuses/5a692ff314aef3e0f37af4146a382d11bfb4d176","head":{"label":"fsek:cafebokning","ref":"cafebokning","sha":"5a692ff314aef3e0f37af4146a382d11bfb4d176","user":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"repo":{"id":27583674,"name":"web","full_name":"fsek/web","owner":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsek/web","description":"F-sektionens hemsida","fork":false,"url":"https://api.github.com/repos/fsek/web","forks_url":"https://api.github.com/repos/fsek/web/forks","keys_url":"https://api.github.com/repos/fsek/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsek/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsek/web/teams","hooks_url":"https://api.github.com/repos/fsek/web/hooks","issue_events_url":"https://api.github.com/repos/fsek/web/issues/events{/number}","events_url":"https://api.github.com/repos/fsek/web/events","assignees_url":"https://api.github.com/repos/fsek/web/assignees{/user}","branches_url":"https://api.github.com/repos/fsek/web/branches{/branch}","tags_url":"https://api.github.com/repos/fsek/web/tags","blobs_url":"https://api.github.com/repos/fsek/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsek/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsek/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsek/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsek/web/statuses/{sha}","languages_url":"https://api.github.com/repos/fsek/web/languages","stargazers_url":"https://api.github.com/repos/fsek/web/stargazers","contributors_url":"https://api.github.com/repos/fsek/web/contributors","subscribers_url":"https://api.github.com/repos/fsek/web/subscribers","subscription_url":"https://api.github.com/repos/fsek/web/subscription","commits_url":"https://api.github.com/repos/fsek/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsek/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsek/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsek/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsek/web/contents/{+path}","compare_url":"https://api.github.com/repos/fsek/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsek/web/merges","archive_url":"https://api.github.com/repos/fsek/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsek/web/downloads","issues_url":"https://api.github.com/repos/fsek/web/issues{/number}","pulls_url":"https://api.github.com/repos/fsek/web/pulls{/number}","milestones_url":"https://api.github.com/repos/fsek/web/milestones{/number}","notifications_url":"https://api.github.com/repos/fsek/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsek/web/labels{/name}","releases_url":"https://api.github.com/repos/fsek/web/releases{/id}","created_at":"2014-12-05T09:13:19Z","updated_at":"2015-03-17T18:19:09Z","pushed_at":"2015-03-17T23:44:11Z","git_url":"git://github.com/fsek/web.git","ssh_url":"git@github.com:fsek/web.git","clone_url":"https://github.com/fsek/web.git","svn_url":"https://github.com/fsek/web","homepage":"http://fsektionen.se","size":209032,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":28,"forks":1,"open_issues":28,"watchers":1,"default_branch":"master"}},"base":{"label":"fsek:master","ref":"master","sha":"f544317109be2d7f1cbc0892c48705432e01c552","user":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"repo":{"id":27583674,"name":"web","full_name":"fsek/web","owner":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsek/web","description":"F-sektionens hemsida","fork":false,"url":"https://api.github.com/repos/fsek/web","forks_url":"https://api.github.com/repos/fsek/web/forks","keys_url":"https://api.github.com/repos/fsek/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsek/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsek/web/teams","hooks_url":"https://api.github.com/repos/fsek/web/hooks","issue_events_url":"https://api.github.com/repos/fsek/web/issues/events{/number}","events_url":"https://api.github.com/repos/fsek/web/events","assignees_url":"https://api.github.com/repos/fsek/web/assignees{/user}","branches_url":"https://api.github.com/repos/fsek/web/branches{/branch}","tags_url":"https://api.github.com/repos/fsek/web/tags","blobs_url":"https://api.github.com/repos/fsek/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsek/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsek/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsek/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsek/web/statuses/{sha}","languages_url":"https://api.github.com/repos/fsek/web/languages","stargazers_url":"https://api.github.com/repos/fsek/web/stargazers","contributors_url":"https://api.github.com/repos/fsek/web/contributors","subscribers_url":"https://api.github.com/repos/fsek/web/subscribers","subscription_url":"https://api.github.com/repos/fsek/web/subscription","commits_url":"https://api.github.com/repos/fsek/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsek/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsek/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsek/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsek/web/contents/{+path}","compare_url":"https://api.github.com/repos/fsek/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsek/web/merges","archive_url":"https://api.github.com/repos/fsek/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsek/web/downloads","issues_url":"https://api.github.com/repos/fsek/web/issues{/number}","pulls_url":"https://api.github.com/repos/fsek/web/pulls{/number}","milestones_url":"https://api.github.com/repos/fsek/web/milestones{/number}","notifications_url":"https://api.github.com/repos/fsek/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsek/web/labels{/name}","releases_url":"https://api.github.com/repos/fsek/web/releases{/id}","created_at":"2014-12-05T09:13:19Z","updated_at":"2015-03-17T18:19:09Z","pushed_at":"2015-03-17T23:44:11Z","git_url":"git://github.com/fsek/web.git","ssh_url":"git@github.com:fsek/web.git","clone_url":"https://github.com/fsek/web.git","svn_url":"https://github.com/fsek/web","homepage":"http://fsektionen.se","size":209032,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":28,"forks":1,"open_issues":28,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsek/web/pulls/32"},"html":{"href":"https://github.com/fsek/web/pull/32"},"issue":{"href":"https://api.github.com/repos/fsek/web/issues/32"},"comments":{"href":"https://api.github.com/repos/fsek/web/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/fsek/web/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/fsek/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsek/web/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/fsek/web/statuses/5a692ff314aef3e0f37af4146a382d11bfb4d176"}}}}