{"action":"created","comment":{"url":"https://api.github.com/repos/speasley/supplycrow/pulls/comments/27447685","id":27447685,"diff_hunk":"@@ -1,10 +1,6 @@\n-class SessionsController < ApplicationController\n-  \n-  layout \"public\"\n-  \n+class SessionsController < PublicController\n   def create\n-    user = User.authenticate(params[:user][:username], params[:user][:password])\n-    if user.present?\n+    if user = User.authenticate(params[:user][:username], params[:user][:password])","path":"app/controllers/sessions_controller.rb","position":9,"original_position":9,"commit_id":"222d896056500f342498025345797ef6b3b4af96","original_commit_id":"222d896056500f342498025345797ef6b3b4af96","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. [83/80]","created_at":"2015-03-31T01:48:27Z","updated_at":"2015-03-31T01:48:27Z","html_url":"https://github.com/speasley/supplycrow/pull/19#discussion_r27447685","pull_request_url":"https://api.github.com/repos/speasley/supplycrow/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/speasley/supplycrow/pulls/comments/27447685"},"html":{"href":"https://github.com/speasley/supplycrow/pull/19#discussion_r27447685"},"pull_request":{"href":"https://api.github.com/repos/speasley/supplycrow/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/speasley/supplycrow/pulls/19","id":30227466,"html_url":"https://github.com/speasley/supplycrow/pull/19","diff_url":"https://github.com/speasley/supplycrow/pull/19.diff","patch_url":"https://github.com/speasley/supplycrow/pull/19.patch","issue_url":"https://api.github.com/repos/speasley/supplycrow/issues/19","number":19,"state":"open","locked":false,"title":"Dashboard - The beginning.","user":{"login":"mokhan","id":80475,"avatar_url":"https://avatars.githubusercontent.com/u/80475?v=3","gravatar_id":"","url":"https://api.github.com/users/mokhan","html_url":"https://github.com/mokhan","followers_url":"https://api.github.com/users/mokhan/followers","following_url":"https://api.github.com/users/mokhan/following{/other_user}","gists_url":"https://api.github.com/users/mokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhan/subscriptions","organizations_url":"https://api.github.com/users/mokhan/orgs","repos_url":"https://api.github.com/users/mokhan/repos","events_url":"https://api.github.com/users/mokhan/events{/privacy}","received_events_url":"https://api.github.com/users/mokhan/received_events","type":"User","site_admin":false},"body":"![the beginning](http://sd.keepcalm-o-matic.co.uk/i/keep-calm-cause-this-is-just-the-beginning.png)","created_at":"2015-02-28T17:34:21Z","updated_at":"2015-03-31T01:48:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca98bba1085d55fb81ad288ad1ef68c4005e9f11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/speasley/supplycrow/pulls/19/commits","review_comments_url":"https://api.github.com/repos/speasley/supplycrow/pulls/19/comments","review_comment_url":"https://api.github.com/repos/speasley/supplycrow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/speasley/supplycrow/issues/19/comments","statuses_url":"https://api.github.com/repos/speasley/supplycrow/statuses/222d896056500f342498025345797ef6b3b4af96","head":{"label":"mokhan:dashboard","ref":"dashboard","sha":"222d896056500f342498025345797ef6b3b4af96","user":{"login":"mokhan","id":80475,"avatar_url":"https://avatars.githubusercontent.com/u/80475?v=3","gravatar_id":"","url":"https://api.github.com/users/mokhan","html_url":"https://github.com/mokhan","followers_url":"https://api.github.com/users/mokhan/followers","following_url":"https://api.github.com/users/mokhan/following{/other_user}","gists_url":"https://api.github.com/users/mokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhan/subscriptions","organizations_url":"https://api.github.com/users/mokhan/orgs","repos_url":"https://api.github.com/users/mokhan/repos","events_url":"https://api.github.com/users/mokhan/events{/privacy}","received_events_url":"https://api.github.com/users/mokhan/received_events","type":"User","site_admin":false},"repo":{"id":28541280,"name":"supplycrow","full_name":"mokhan/supplycrow","owner":{"login":"mokhan","id":80475,"avatar_url":"https://avatars.githubusercontent.com/u/80475?v=3","gravatar_id":"","url":"https://api.github.com/users/mokhan","html_url":"https://github.com/mokhan","followers_url":"https://api.github.com/users/mokhan/followers","following_url":"https://api.github.com/users/mokhan/following{/other_user}","gists_url":"https://api.github.com/users/mokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhan/subscriptions","organizations_url":"https://api.github.com/users/mokhan/orgs","repos_url":"https://api.github.com/users/mokhan/repos","events_url":"https://api.github.com/users/mokhan/events{/privacy}","received_events_url":"https://api.github.com/users/mokhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mokhan/supplycrow","description":"Our inventory app (working title)","fork":true,"url":"https://api.github.com/repos/mokhan/supplycrow","forks_url":"https://api.github.com/repos/mokhan/supplycrow/forks","keys_url":"https://api.github.com/repos/mokhan/supplycrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mokhan/supplycrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mokhan/supplycrow/teams","hooks_url":"https://api.github.com/repos/mokhan/supplycrow/hooks","issue_events_url":"https://api.github.com/repos/mokhan/supplycrow/issues/events{/number}","events_url":"https://api.github.com/repos/mokhan/supplycrow/events","assignees_url":"https://api.github.com/repos/mokhan/supplycrow/assignees{/user}","branches_url":"https://api.github.com/repos/mokhan/supplycrow/branches{/branch}","tags_url":"https://api.github.com/repos/mokhan/supplycrow/tags","blobs_url":"https://api.github.com/repos/mokhan/supplycrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mokhan/supplycrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mokhan/supplycrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/mokhan/supplycrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mokhan/supplycrow/statuses/{sha}","languages_url":"https://api.github.com/repos/mokhan/supplycrow/languages","stargazers_url":"https://api.github.com/repos/mokhan/supplycrow/stargazers","contributors_url":"https://api.github.com/repos/mokhan/supplycrow/contributors","subscribers_url":"https://api.github.com/repos/mokhan/supplycrow/subscribers","subscription_url":"https://api.github.com/repos/mokhan/supplycrow/subscription","commits_url":"https://api.github.com/repos/mokhan/supplycrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/mokhan/supplycrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/mokhan/supplycrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/mokhan/supplycrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/mokhan/supplycrow/contents/{+path}","compare_url":"https://api.github.com/repos/mokhan/supplycrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mokhan/supplycrow/merges","archive_url":"https://api.github.com/repos/mokhan/supplycrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mokhan/supplycrow/downloads","issues_url":"https://api.github.com/repos/mokhan/supplycrow/issues{/number}","pulls_url":"https://api.github.com/repos/mokhan/supplycrow/pulls{/number}","milestones_url":"https://api.github.com/repos/mokhan/supplycrow/milestones{/number}","notifications_url":"https://api.github.com/repos/mokhan/supplycrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mokhan/supplycrow/labels{/name}","releases_url":"https://api.github.com/repos/mokhan/supplycrow/releases{/id}","created_at":"2014-12-27T16:40:08Z","updated_at":"2015-03-17T00:29:18Z","pushed_at":"2015-03-31T01:48:14Z","git_url":"git://github.com/mokhan/supplycrow.git","ssh_url":"git@github.com:mokhan/supplycrow.git","clone_url":"https://github.com/mokhan/supplycrow.git","svn_url":"https://github.com/mokhan/supplycrow","homepage":null,"size":449,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"speasley:master","ref":"master","sha":"5dcbd7bc311a427f8a975e3e53bd9cc825b8fcdd","user":{"login":"speasley","id":1308092,"avatar_url":"https://avatars.githubusercontent.com/u/1308092?v=3","gravatar_id":"","url":"https://api.github.com/users/speasley","html_url":"https://github.com/speasley","followers_url":"https://api.github.com/users/speasley/followers","following_url":"https://api.github.com/users/speasley/following{/other_user}","gists_url":"https://api.github.com/users/speasley/gists{/gist_id}","starred_url":"https://api.github.com/users/speasley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speasley/subscriptions","organizations_url":"https://api.github.com/users/speasley/orgs","repos_url":"https://api.github.com/users/speasley/repos","events_url":"https://api.github.com/users/speasley/events{/privacy}","received_events_url":"https://api.github.com/users/speasley/received_events","type":"User","site_admin":false},"repo":{"id":28538270,"name":"supplycrow","full_name":"speasley/supplycrow","owner":{"login":"speasley","id":1308092,"avatar_url":"https://avatars.githubusercontent.com/u/1308092?v=3","gravatar_id":"","url":"https://api.github.com/users/speasley","html_url":"https://github.com/speasley","followers_url":"https://api.github.com/users/speasley/followers","following_url":"https://api.github.com/users/speasley/following{/other_user}","gists_url":"https://api.github.com/users/speasley/gists{/gist_id}","starred_url":"https://api.github.com/users/speasley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speasley/subscriptions","organizations_url":"https://api.github.com/users/speasley/orgs","repos_url":"https://api.github.com/users/speasley/repos","events_url":"https://api.github.com/users/speasley/events{/privacy}","received_events_url":"https://api.github.com/users/speasley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/speasley/supplycrow","description":"Our inventory app","fork":false,"url":"https://api.github.com/repos/speasley/supplycrow","forks_url":"https://api.github.com/repos/speasley/supplycrow/forks","keys_url":"https://api.github.com/repos/speasley/supplycrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/speasley/supplycrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/speasley/supplycrow/teams","hooks_url":"https://api.github.com/repos/speasley/supplycrow/hooks","issue_events_url":"https://api.github.com/repos/speasley/supplycrow/issues/events{/number}","events_url":"https://api.github.com/repos/speasley/supplycrow/events","assignees_url":"https://api.github.com/repos/speasley/supplycrow/assignees{/user}","branches_url":"https://api.github.com/repos/speasley/supplycrow/branches{/branch}","tags_url":"https://api.github.com/repos/speasley/supplycrow/tags","blobs_url":"https://api.github.com/repos/speasley/supplycrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/speasley/supplycrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/speasley/supplycrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/speasley/supplycrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/speasley/supplycrow/statuses/{sha}","languages_url":"https://api.github.com/repos/speasley/supplycrow/languages","stargazers_url":"https://api.github.com/repos/speasley/supplycrow/stargazers","contributors_url":"https://api.github.com/repos/speasley/supplycrow/contributors","subscribers_url":"https://api.github.com/repos/speasley/supplycrow/subscribers","subscription_url":"https://api.github.com/repos/speasley/supplycrow/subscription","commits_url":"https://api.github.com/repos/speasley/supplycrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/speasley/supplycrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/speasley/supplycrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/speasley/supplycrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/speasley/supplycrow/contents/{+path}","compare_url":"https://api.github.com/repos/speasley/supplycrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/speasley/supplycrow/merges","archive_url":"https://api.github.com/repos/speasley/supplycrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/speasley/supplycrow/downloads","issues_url":"https://api.github.com/repos/speasley/supplycrow/issues{/number}","pulls_url":"https://api.github.com/repos/speasley/supplycrow/pulls{/number}","milestones_url":"https://api.github.com/repos/speasley/supplycrow/milestones{/number}","notifications_url":"https://api.github.com/repos/speasley/supplycrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/speasley/supplycrow/labels{/name}","releases_url":"https://api.github.com/repos/speasley/supplycrow/releases{/id}","created_at":"2014-12-27T14:15:49Z","updated_at":"2015-03-10T16:52:40Z","pushed_at":"2015-03-31T01:48:14Z","git_url":"git://github.com/speasley/supplycrow.git","ssh_url":"git@github.com:speasley/supplycrow.git","clone_url":"https://github.com/speasley/supplycrow.git","svn_url":"https://github.com/speasley/supplycrow","homepage":"","size":992,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/speasley/supplycrow/pulls/19"},"html":{"href":"https://github.com/speasley/supplycrow/pull/19"},"issue":{"href":"https://api.github.com/repos/speasley/supplycrow/issues/19"},"comments":{"href":"https://api.github.com/repos/speasley/supplycrow/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/speasley/supplycrow/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/speasley/supplycrow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/speasley/supplycrow/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/speasley/supplycrow/statuses/222d896056500f342498025345797ef6b3b4af96"}}}}