{"action":"created","comment":{"url":"https://api.github.com/repos/Tekkon/flashcards4/pulls/comments/63994640","id":63994640,"diff_hunk":"@@ -0,0 +1,18 @@\n+class Home::UserSessionsController < Home::BaseController\n+  def new\n+    if current_user\n+      redirect_to root_path\n+    else\n+      @user = User.new\n+    end\n+  end\n+\n+  def create\n+    if @user = login(params[:email], params[:password])\n+      redirect_back_or_to root_path, notice: t(:log_in_is_successful_notice)\n+    else\n+      flash.now[:alert] = t(:not_logged_in_alert)\n+      render action: 'new'","path":"app/controllers/home/user_sessions_controller.rb","position":15,"original_position":15,"commit_id":"85f30d93a6a67a76b61de4a9e64046c8cda52db9","original_commit_id":"85f30d93a6a67a76b61de4a9e64046c8cda52db9","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-05-20T06:05:07Z","updated_at":"2016-05-20T06:05:07Z","html_url":"https://github.com/Tekkon/flashcards4/pull/2#discussion_r63994640","pull_request_url":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Tekkon/flashcards4/pulls/comments/63994640"},"html":{"href":"https://github.com/Tekkon/flashcards4/pull/2#discussion_r63994640"},"pull_request":{"href":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2","id":70805491,"html_url":"https://github.com/Tekkon/flashcards4/pull/2","diff_url":"https://github.com/Tekkon/flashcards4/pull/2.diff","patch_url":"https://github.com/Tekkon/flashcards4/pull/2.patch","issue_url":"https://api.github.com/repos/Tekkon/flashcards4/issues/2","number":2,"state":"open","locked":false,"title":"new commit","user":{"login":"Tekkon","id":4657632,"avatar_url":"https://avatars.githubusercontent.com/u/4657632?v=3","gravatar_id":"","url":"https://api.github.com/users/Tekkon","html_url":"https://github.com/Tekkon","followers_url":"https://api.github.com/users/Tekkon/followers","following_url":"https://api.github.com/users/Tekkon/following{/other_user}","gists_url":"https://api.github.com/users/Tekkon/gists{/gist_id}","starred_url":"https://api.github.com/users/Tekkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tekkon/subscriptions","organizations_url":"https://api.github.com/users/Tekkon/orgs","repos_url":"https://api.github.com/users/Tekkon/repos","events_url":"https://api.github.com/users/Tekkon/events{/privacy}","received_events_url":"https://api.github.com/users/Tekkon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-20T06:04:54Z","updated_at":"2016-05-20T06:05:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acb3f13a0001e173c31933eabca2b4d6e9581e16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Tekkon/flashcards4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tekkon/flashcards4/issues/2/comments","statuses_url":"https://api.github.com/repos/Tekkon/flashcards4/statuses/85f30d93a6a67a76b61de4a9e64046c8cda52db9","head":{"label":"Tekkon:refactor","ref":"refactor","sha":"85f30d93a6a67a76b61de4a9e64046c8cda52db9","user":{"login":"Tekkon","id":4657632,"avatar_url":"https://avatars.githubusercontent.com/u/4657632?v=3","gravatar_id":"","url":"https://api.github.com/users/Tekkon","html_url":"https://github.com/Tekkon","followers_url":"https://api.github.com/users/Tekkon/followers","following_url":"https://api.github.com/users/Tekkon/following{/other_user}","gists_url":"https://api.github.com/users/Tekkon/gists{/gist_id}","starred_url":"https://api.github.com/users/Tekkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tekkon/subscriptions","organizations_url":"https://api.github.com/users/Tekkon/orgs","repos_url":"https://api.github.com/users/Tekkon/repos","events_url":"https://api.github.com/users/Tekkon/events{/privacy}","received_events_url":"https://api.github.com/users/Tekkon/received_events","type":"User","site_admin":false},"repo":{"id":59268866,"name":"flashcards4","full_name":"Tekkon/flashcards4","owner":{"login":"Tekkon","id":4657632,"avatar_url":"https://avatars.githubusercontent.com/u/4657632?v=3","gravatar_id":"","url":"https://api.github.com/users/Tekkon","html_url":"https://github.com/Tekkon","followers_url":"https://api.github.com/users/Tekkon/followers","following_url":"https://api.github.com/users/Tekkon/following{/other_user}","gists_url":"https://api.github.com/users/Tekkon/gists{/gist_id}","starred_url":"https://api.github.com/users/Tekkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tekkon/subscriptions","organizations_url":"https://api.github.com/users/Tekkon/orgs","repos_url":"https://api.github.com/users/Tekkon/repos","events_url":"https://api.github.com/users/Tekkon/events{/privacy}","received_events_url":"https://api.github.com/users/Tekkon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tekkon/flashcards4","description":"","fork":false,"url":"https://api.github.com/repos/Tekkon/flashcards4","forks_url":"https://api.github.com/repos/Tekkon/flashcards4/forks","keys_url":"https://api.github.com/repos/Tekkon/flashcards4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tekkon/flashcards4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tekkon/flashcards4/teams","hooks_url":"https://api.github.com/repos/Tekkon/flashcards4/hooks","issue_events_url":"https://api.github.com/repos/Tekkon/flashcards4/issues/events{/number}","events_url":"https://api.github.com/repos/Tekkon/flashcards4/events","assignees_url":"https://api.github.com/repos/Tekkon/flashcards4/assignees{/user}","branches_url":"https://api.github.com/repos/Tekkon/flashcards4/branches{/branch}","tags_url":"https://api.github.com/repos/Tekkon/flashcards4/tags","blobs_url":"https://api.github.com/repos/Tekkon/flashcards4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tekkon/flashcards4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tekkon/flashcards4/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tekkon/flashcards4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tekkon/flashcards4/statuses/{sha}","languages_url":"https://api.github.com/repos/Tekkon/flashcards4/languages","stargazers_url":"https://api.github.com/repos/Tekkon/flashcards4/stargazers","contributors_url":"https://api.github.com/repos/Tekkon/flashcards4/contributors","subscribers_url":"https://api.github.com/repos/Tekkon/flashcards4/subscribers","subscription_url":"https://api.github.com/repos/Tekkon/flashcards4/subscription","commits_url":"https://api.github.com/repos/Tekkon/flashcards4/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tekkon/flashcards4/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tekkon/flashcards4/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tekkon/flashcards4/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tekkon/flashcards4/contents/{+path}","compare_url":"https://api.github.com/repos/Tekkon/flashcards4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tekkon/flashcards4/merges","archive_url":"https://api.github.com/repos/Tekkon/flashcards4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tekkon/flashcards4/downloads","issues_url":"https://api.github.com/repos/Tekkon/flashcards4/issues{/number}","pulls_url":"https://api.github.com/repos/Tekkon/flashcards4/pulls{/number}","milestones_url":"https://api.github.com/repos/Tekkon/flashcards4/milestones{/number}","notifications_url":"https://api.github.com/repos/Tekkon/flashcards4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tekkon/flashcards4/labels{/name}","releases_url":"https://api.github.com/repos/Tekkon/flashcards4/releases{/id}","deployments_url":"https://api.github.com/repos/Tekkon/flashcards4/deployments","created_at":"2016-05-20T05:58:16Z","updated_at":"2016-05-20T05:58:16Z","pushed_at":"2016-05-20T06:04:54Z","git_url":"git://github.com/Tekkon/flashcards4.git","ssh_url":"git@github.com:Tekkon/flashcards4.git","clone_url":"https://github.com/Tekkon/flashcards4.git","svn_url":"https://github.com/Tekkon/flashcards4","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":null,"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":"Tekkon:master","ref":"master","sha":"567a10348f0f7d8901b91ba0c0dfd1afcc23dfa8","user":{"login":"Tekkon","id":4657632,"avatar_url":"https://avatars.githubusercontent.com/u/4657632?v=3","gravatar_id":"","url":"https://api.github.com/users/Tekkon","html_url":"https://github.com/Tekkon","followers_url":"https://api.github.com/users/Tekkon/followers","following_url":"https://api.github.com/users/Tekkon/following{/other_user}","gists_url":"https://api.github.com/users/Tekkon/gists{/gist_id}","starred_url":"https://api.github.com/users/Tekkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tekkon/subscriptions","organizations_url":"https://api.github.com/users/Tekkon/orgs","repos_url":"https://api.github.com/users/Tekkon/repos","events_url":"https://api.github.com/users/Tekkon/events{/privacy}","received_events_url":"https://api.github.com/users/Tekkon/received_events","type":"User","site_admin":false},"repo":{"id":59268866,"name":"flashcards4","full_name":"Tekkon/flashcards4","owner":{"login":"Tekkon","id":4657632,"avatar_url":"https://avatars.githubusercontent.com/u/4657632?v=3","gravatar_id":"","url":"https://api.github.com/users/Tekkon","html_url":"https://github.com/Tekkon","followers_url":"https://api.github.com/users/Tekkon/followers","following_url":"https://api.github.com/users/Tekkon/following{/other_user}","gists_url":"https://api.github.com/users/Tekkon/gists{/gist_id}","starred_url":"https://api.github.com/users/Tekkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tekkon/subscriptions","organizations_url":"https://api.github.com/users/Tekkon/orgs","repos_url":"https://api.github.com/users/Tekkon/repos","events_url":"https://api.github.com/users/Tekkon/events{/privacy}","received_events_url":"https://api.github.com/users/Tekkon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tekkon/flashcards4","description":"","fork":false,"url":"https://api.github.com/repos/Tekkon/flashcards4","forks_url":"https://api.github.com/repos/Tekkon/flashcards4/forks","keys_url":"https://api.github.com/repos/Tekkon/flashcards4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tekkon/flashcards4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tekkon/flashcards4/teams","hooks_url":"https://api.github.com/repos/Tekkon/flashcards4/hooks","issue_events_url":"https://api.github.com/repos/Tekkon/flashcards4/issues/events{/number}","events_url":"https://api.github.com/repos/Tekkon/flashcards4/events","assignees_url":"https://api.github.com/repos/Tekkon/flashcards4/assignees{/user}","branches_url":"https://api.github.com/repos/Tekkon/flashcards4/branches{/branch}","tags_url":"https://api.github.com/repos/Tekkon/flashcards4/tags","blobs_url":"https://api.github.com/repos/Tekkon/flashcards4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tekkon/flashcards4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tekkon/flashcards4/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tekkon/flashcards4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tekkon/flashcards4/statuses/{sha}","languages_url":"https://api.github.com/repos/Tekkon/flashcards4/languages","stargazers_url":"https://api.github.com/repos/Tekkon/flashcards4/stargazers","contributors_url":"https://api.github.com/repos/Tekkon/flashcards4/contributors","subscribers_url":"https://api.github.com/repos/Tekkon/flashcards4/subscribers","subscription_url":"https://api.github.com/repos/Tekkon/flashcards4/subscription","commits_url":"https://api.github.com/repos/Tekkon/flashcards4/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tekkon/flashcards4/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tekkon/flashcards4/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tekkon/flashcards4/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tekkon/flashcards4/contents/{+path}","compare_url":"https://api.github.com/repos/Tekkon/flashcards4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tekkon/flashcards4/merges","archive_url":"https://api.github.com/repos/Tekkon/flashcards4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tekkon/flashcards4/downloads","issues_url":"https://api.github.com/repos/Tekkon/flashcards4/issues{/number}","pulls_url":"https://api.github.com/repos/Tekkon/flashcards4/pulls{/number}","milestones_url":"https://api.github.com/repos/Tekkon/flashcards4/milestones{/number}","notifications_url":"https://api.github.com/repos/Tekkon/flashcards4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tekkon/flashcards4/labels{/name}","releases_url":"https://api.github.com/repos/Tekkon/flashcards4/releases{/id}","deployments_url":"https://api.github.com/repos/Tekkon/flashcards4/deployments","created_at":"2016-05-20T05:58:16Z","updated_at":"2016-05-20T05:58:16Z","pushed_at":"2016-05-20T06:04:54Z","git_url":"git://github.com/Tekkon/flashcards4.git","ssh_url":"git@github.com:Tekkon/flashcards4.git","clone_url":"https://github.com/Tekkon/flashcards4.git","svn_url":"https://github.com/Tekkon/flashcards4","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":null,"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/Tekkon/flashcards4/pulls/2"},"html":{"href":"https://github.com/Tekkon/flashcards4/pull/2"},"issue":{"href":"https://api.github.com/repos/Tekkon/flashcards4/issues/2"},"comments":{"href":"https://api.github.com/repos/Tekkon/flashcards4/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Tekkon/flashcards4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tekkon/flashcards4/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Tekkon/flashcards4/statuses/85f30d93a6a67a76b61de4a9e64046c8cda52db9"}}}}
{"actor":{"display_login":"houndci-bot"}}