{"action":"created","comment":{"url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/comments/30367618","id":30367618,"diff_hunk":"@@ -3,8 +3,11 @@ class CoursesController < ApplicationController\n   after_action :verify_authorized, except: [:index, :show]\n \n   def index\n-    @taken_course_ids = current_user.try(:course_ids)\n-    @planned_course_ids = @active_plan.try(:course_ids)\n+    if user_signed_in?\n+      @active_plan = Plan\n+                     .includes(taken_courses: [:course]) # needed for taken course btns","path":"app/controllers/courses_controller.rb","position":8,"original_position":8,"commit_id":"3ef2f854bac0059d79c17283e17f0f12aa83b5d8","original_commit_id":"e9990ea7d72b502b6745ad4788fa04f5bd950e5e","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. [87/80]<br>Place the . on the previous line, together with the method call receiver.","created_at":"2015-05-14T21:56:17Z","updated_at":"2015-05-14T21:56:17Z","html_url":"https://github.com/robwise/drexel_msis_planner/pull/27#discussion_r30367618","pull_request_url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/comments/30367618"},"html":{"href":"https://github.com/robwise/drexel_msis_planner/pull/27#discussion_r30367618"},"pull_request":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27","id":35465899,"html_url":"https://github.com/robwise/drexel_msis_planner/pull/27","diff_url":"https://github.com/robwise/drexel_msis_planner/pull/27.diff","patch_url":"https://github.com/robwise/drexel_msis_planner/pull/27.patch","issue_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/27","number":27,"state":"open","locked":false,"title":"Plan problems","user":{"login":"robwise","id":6173488,"avatar_url":"https://avatars.githubusercontent.com/u/6173488?v=3","gravatar_id":"","url":"https://api.github.com/users/robwise","html_url":"https://github.com/robwise","followers_url":"https://api.github.com/users/robwise/followers","following_url":"https://api.github.com/users/robwise/following{/other_user}","gists_url":"https://api.github.com/users/robwise/gists{/gist_id}","starred_url":"https://api.github.com/users/robwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwise/subscriptions","organizations_url":"https://api.github.com/users/robwise/orgs","repos_url":"https://api.github.com/users/robwise/repos","events_url":"https://api.github.com/users/robwise/events{/privacy}","received_events_url":"https://api.github.com/users/robwise/received_events","type":"User","site_admin":false},"body":"fixes #11 ","created_at":"2015-05-14T21:49:09Z","updated_at":"2015-05-14T21:56:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a307a2397a8c54667ed3053d76ddcb4465e8d77b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27/commits","review_comments_url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27/comments","review_comment_url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/27/comments","statuses_url":"https://api.github.com/repos/robwise/drexel_msis_planner/statuses/3ef2f854bac0059d79c17283e17f0f12aa83b5d8","head":{"label":"robwise:plan-problems","ref":"plan-problems","sha":"3ef2f854bac0059d79c17283e17f0f12aa83b5d8","user":{"login":"robwise","id":6173488,"avatar_url":"https://avatars.githubusercontent.com/u/6173488?v=3","gravatar_id":"","url":"https://api.github.com/users/robwise","html_url":"https://github.com/robwise","followers_url":"https://api.github.com/users/robwise/followers","following_url":"https://api.github.com/users/robwise/following{/other_user}","gists_url":"https://api.github.com/users/robwise/gists{/gist_id}","starred_url":"https://api.github.com/users/robwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwise/subscriptions","organizations_url":"https://api.github.com/users/robwise/orgs","repos_url":"https://api.github.com/users/robwise/repos","events_url":"https://api.github.com/users/robwise/events{/privacy}","received_events_url":"https://api.github.com/users/robwise/received_events","type":"User","site_admin":false},"repo":{"id":23376886,"name":"drexel_msis_planner","full_name":"robwise/drexel_msis_planner","owner":{"login":"robwise","id":6173488,"avatar_url":"https://avatars.githubusercontent.com/u/6173488?v=3","gravatar_id":"","url":"https://api.github.com/users/robwise","html_url":"https://github.com/robwise","followers_url":"https://api.github.com/users/robwise/followers","following_url":"https://api.github.com/users/robwise/following{/other_user}","gists_url":"https://api.github.com/users/robwise/gists{/gist_id}","starred_url":"https://api.github.com/users/robwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwise/subscriptions","organizations_url":"https://api.github.com/users/robwise/orgs","repos_url":"https://api.github.com/users/robwise/repos","events_url":"https://api.github.com/users/robwise/events{/privacy}","received_events_url":"https://api.github.com/users/robwise/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robwise/drexel_msis_planner","description":"Ruby on Rails project for a degree planner for MSIS students at Drexel University","fork":false,"url":"https://api.github.com/repos/robwise/drexel_msis_planner","forks_url":"https://api.github.com/repos/robwise/drexel_msis_planner/forks","keys_url":"https://api.github.com/repos/robwise/drexel_msis_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robwise/drexel_msis_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robwise/drexel_msis_planner/teams","hooks_url":"https://api.github.com/repos/robwise/drexel_msis_planner/hooks","issue_events_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/events{/number}","events_url":"https://api.github.com/repos/robwise/drexel_msis_planner/events","assignees_url":"https://api.github.com/repos/robwise/drexel_msis_planner/assignees{/user}","branches_url":"https://api.github.com/repos/robwise/drexel_msis_planner/branches{/branch}","tags_url":"https://api.github.com/repos/robwise/drexel_msis_planner/tags","blobs_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robwise/drexel_msis_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/robwise/drexel_msis_planner/languages","stargazers_url":"https://api.github.com/repos/robwise/drexel_msis_planner/stargazers","contributors_url":"https://api.github.com/repos/robwise/drexel_msis_planner/contributors","subscribers_url":"https://api.github.com/repos/robwise/drexel_msis_planner/subscribers","subscription_url":"https://api.github.com/repos/robwise/drexel_msis_planner/subscription","commits_url":"https://api.github.com/repos/robwise/drexel_msis_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/robwise/drexel_msis_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/robwise/drexel_msis_planner/contents/{+path}","compare_url":"https://api.github.com/repos/robwise/drexel_msis_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robwise/drexel_msis_planner/merges","archive_url":"https://api.github.com/repos/robwise/drexel_msis_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robwise/drexel_msis_planner/downloads","issues_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues{/number}","pulls_url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/robwise/drexel_msis_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/robwise/drexel_msis_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robwise/drexel_msis_planner/labels{/name}","releases_url":"https://api.github.com/repos/robwise/drexel_msis_planner/releases{/id}","created_at":"2014-08-27T04:35:46Z","updated_at":"2015-05-07T00:23:17Z","pushed_at":"2015-05-14T21:51:01Z","git_url":"git://github.com/robwise/drexel_msis_planner.git","ssh_url":"git@github.com:robwise/drexel_msis_planner.git","clone_url":"https://github.com/robwise/drexel_msis_planner.git","svn_url":"https://github.com/robwise/drexel_msis_planner","homepage":"https://still-sands-7957.herokuapp.com/","size":1044,"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":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"robwise:master","ref":"master","sha":"f3d443f5a0fee78abe3fb3135fc10f7f79e0be63","user":{"login":"robwise","id":6173488,"avatar_url":"https://avatars.githubusercontent.com/u/6173488?v=3","gravatar_id":"","url":"https://api.github.com/users/robwise","html_url":"https://github.com/robwise","followers_url":"https://api.github.com/users/robwise/followers","following_url":"https://api.github.com/users/robwise/following{/other_user}","gists_url":"https://api.github.com/users/robwise/gists{/gist_id}","starred_url":"https://api.github.com/users/robwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwise/subscriptions","organizations_url":"https://api.github.com/users/robwise/orgs","repos_url":"https://api.github.com/users/robwise/repos","events_url":"https://api.github.com/users/robwise/events{/privacy}","received_events_url":"https://api.github.com/users/robwise/received_events","type":"User","site_admin":false},"repo":{"id":23376886,"name":"drexel_msis_planner","full_name":"robwise/drexel_msis_planner","owner":{"login":"robwise","id":6173488,"avatar_url":"https://avatars.githubusercontent.com/u/6173488?v=3","gravatar_id":"","url":"https://api.github.com/users/robwise","html_url":"https://github.com/robwise","followers_url":"https://api.github.com/users/robwise/followers","following_url":"https://api.github.com/users/robwise/following{/other_user}","gists_url":"https://api.github.com/users/robwise/gists{/gist_id}","starred_url":"https://api.github.com/users/robwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwise/subscriptions","organizations_url":"https://api.github.com/users/robwise/orgs","repos_url":"https://api.github.com/users/robwise/repos","events_url":"https://api.github.com/users/robwise/events{/privacy}","received_events_url":"https://api.github.com/users/robwise/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robwise/drexel_msis_planner","description":"Ruby on Rails project for a degree planner for MSIS students at Drexel University","fork":false,"url":"https://api.github.com/repos/robwise/drexel_msis_planner","forks_url":"https://api.github.com/repos/robwise/drexel_msis_planner/forks","keys_url":"https://api.github.com/repos/robwise/drexel_msis_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robwise/drexel_msis_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robwise/drexel_msis_planner/teams","hooks_url":"https://api.github.com/repos/robwise/drexel_msis_planner/hooks","issue_events_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/events{/number}","events_url":"https://api.github.com/repos/robwise/drexel_msis_planner/events","assignees_url":"https://api.github.com/repos/robwise/drexel_msis_planner/assignees{/user}","branches_url":"https://api.github.com/repos/robwise/drexel_msis_planner/branches{/branch}","tags_url":"https://api.github.com/repos/robwise/drexel_msis_planner/tags","blobs_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robwise/drexel_msis_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/robwise/drexel_msis_planner/languages","stargazers_url":"https://api.github.com/repos/robwise/drexel_msis_planner/stargazers","contributors_url":"https://api.github.com/repos/robwise/drexel_msis_planner/contributors","subscribers_url":"https://api.github.com/repos/robwise/drexel_msis_planner/subscribers","subscription_url":"https://api.github.com/repos/robwise/drexel_msis_planner/subscription","commits_url":"https://api.github.com/repos/robwise/drexel_msis_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/robwise/drexel_msis_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/robwise/drexel_msis_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/robwise/drexel_msis_planner/contents/{+path}","compare_url":"https://api.github.com/repos/robwise/drexel_msis_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robwise/drexel_msis_planner/merges","archive_url":"https://api.github.com/repos/robwise/drexel_msis_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robwise/drexel_msis_planner/downloads","issues_url":"https://api.github.com/repos/robwise/drexel_msis_planner/issues{/number}","pulls_url":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/robwise/drexel_msis_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/robwise/drexel_msis_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robwise/drexel_msis_planner/labels{/name}","releases_url":"https://api.github.com/repos/robwise/drexel_msis_planner/releases{/id}","created_at":"2014-08-27T04:35:46Z","updated_at":"2015-05-07T00:23:17Z","pushed_at":"2015-05-14T21:51:01Z","git_url":"git://github.com/robwise/drexel_msis_planner.git","ssh_url":"git@github.com:robwise/drexel_msis_planner.git","clone_url":"https://github.com/robwise/drexel_msis_planner.git","svn_url":"https://github.com/robwise/drexel_msis_planner","homepage":"https://still-sands-7957.herokuapp.com/","size":1044,"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":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27"},"html":{"href":"https://github.com/robwise/drexel_msis_planner/pull/27"},"issue":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/27"},"comments":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/robwise/drexel_msis_planner/statuses/3ef2f854bac0059d79c17283e17f0f12aa83b5d8"}}}}