{"action":"created","comment":{"url":"https://api.github.com/repos/ckib16/bloccit/pulls/comments/22764193","id":22764193,"diff_hunk":"@@ -22,12 +22,22 @@ def markdown(text)\n     (redcarpet.render text).html_safe\n   end\n \n-  def up_vote_link_classes(argument)\n-\n+  def up_vote_link_classes(post)\n+    class_start = \"glyphicon glyphicon-chevron-up \"\n+    if current_user.voted(post) && current_user.voted(post).up_vote?\n+      class_start + 'voted'\n+    else\n+      class_start + ''\n+    end\n   end\n \n-  def down_vote_link_classes(argument)\n-    \n+  def down_vote_link_classes(post)\n+    class_start = \"glyphicon glyphicon-cheveron-down \"\n+    if current_user.voted(post) && current_user.voted(post).down_vote?\n+      class_start + 'voted'","path":"app/helpers/application_helper.rb","position":20,"original_position":20,"commit_id":"1c800eb3562f36d53492515c3616d9b4cd96429b","original_commit_id":"1c800eb3562f36d53492515c3616d9b4cd96429b","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-01-11T04:08:35Z","updated_at":"2015-01-11T04:08:35Z","html_url":"https://github.com/ckib16/bloccit/pull/6#discussion_r22764193","pull_request_url":"https://api.github.com/repos/ckib16/bloccit/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/ckib16/bloccit/pulls/comments/22764193"},"html":{"href":"https://github.com/ckib16/bloccit/pull/6#discussion_r22764193"},"pull_request":{"href":"https://api.github.com/repos/ckib16/bloccit/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/ckib16/bloccit/pulls/6","id":27158545,"html_url":"https://github.com/ckib16/bloccit/pull/6","diff_url":"https://github.com/ckib16/bloccit/pull/6.diff","patch_url":"https://github.com/ckib16/bloccit/pull/6.patch","issue_url":"https://api.github.com/repos/ckib16/bloccit/issues/6","number":6,"state":"open","locked":false,"title":"Some logic problems with the Vote Helper","user":{"login":"ckib16","id":2160186,"avatar_url":"https://avatars.githubusercontent.com/u/2160186?v=3","gravatar_id":"","url":"https://api.github.com/users/ckib16","html_url":"https://github.com/ckib16","followers_url":"https://api.github.com/users/ckib16/followers","following_url":"https://api.github.com/users/ckib16/following{/other_user}","gists_url":"https://api.github.com/users/ckib16/gists{/gist_id}","starred_url":"https://api.github.com/users/ckib16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckib16/subscriptions","organizations_url":"https://api.github.com/users/ckib16/orgs","repos_url":"https://api.github.com/users/ckib16/repos","events_url":"https://api.github.com/users/ckib16/events{/privacy}","received_events_url":"https://api.github.com/users/ckib16/received_events","type":"User","site_admin":false},"body":"Chris - here's my problems, may stem from the `boostrap sprockets` issue I'm having\r\n\r\n1) Logic isn't working  - showing an up chevron on every post all the time \r\n\r\n2) Also - when I down vote on a comment's 'x' (remember the 'x' symbols are shown as a work-around to not being able to load bootstrap sprockets symbols), the up-chevron does not disappear.","created_at":"2015-01-11T04:08:25Z","updated_at":"2015-01-11T04:08:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d56ab2aacf8ceb1386981d8d0486e96a7ea94027","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ckib16/bloccit/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ckib16/bloccit/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ckib16/bloccit/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ckib16/bloccit/issues/6/comments","statuses_url":"https://api.github.com/repos/ckib16/bloccit/statuses/1c800eb3562f36d53492515c3616d9b4cd96429b","head":{"label":"ckib16:L47-assign-pull","ref":"L47-assign-pull","sha":"1c800eb3562f36d53492515c3616d9b4cd96429b","user":{"login":"ckib16","id":2160186,"avatar_url":"https://avatars.githubusercontent.com/u/2160186?v=3","gravatar_id":"","url":"https://api.github.com/users/ckib16","html_url":"https://github.com/ckib16","followers_url":"https://api.github.com/users/ckib16/followers","following_url":"https://api.github.com/users/ckib16/following{/other_user}","gists_url":"https://api.github.com/users/ckib16/gists{/gist_id}","starred_url":"https://api.github.com/users/ckib16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckib16/subscriptions","organizations_url":"https://api.github.com/users/ckib16/orgs","repos_url":"https://api.github.com/users/ckib16/repos","events_url":"https://api.github.com/users/ckib16/events{/privacy}","received_events_url":"https://api.github.com/users/ckib16/received_events","type":"User","site_admin":false},"repo":{"id":26700380,"name":"bloccit","full_name":"ckib16/bloccit","owner":{"login":"ckib16","id":2160186,"avatar_url":"https://avatars.githubusercontent.com/u/2160186?v=3","gravatar_id":"","url":"https://api.github.com/users/ckib16","html_url":"https://github.com/ckib16","followers_url":"https://api.github.com/users/ckib16/followers","following_url":"https://api.github.com/users/ckib16/following{/other_user}","gists_url":"https://api.github.com/users/ckib16/gists{/gist_id}","starred_url":"https://api.github.com/users/ckib16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckib16/subscriptions","organizations_url":"https://api.github.com/users/ckib16/orgs","repos_url":"https://api.github.com/users/ckib16/repos","events_url":"https://api.github.com/users/ckib16/events{/privacy}","received_events_url":"https://api.github.com/users/ckib16/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckib16/bloccit","description":"My bloccit app created with Chris Beck","fork":false,"url":"https://api.github.com/repos/ckib16/bloccit","forks_url":"https://api.github.com/repos/ckib16/bloccit/forks","keys_url":"https://api.github.com/repos/ckib16/bloccit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckib16/bloccit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckib16/bloccit/teams","hooks_url":"https://api.github.com/repos/ckib16/bloccit/hooks","issue_events_url":"https://api.github.com/repos/ckib16/bloccit/issues/events{/number}","events_url":"https://api.github.com/repos/ckib16/bloccit/events","assignees_url":"https://api.github.com/repos/ckib16/bloccit/assignees{/user}","branches_url":"https://api.github.com/repos/ckib16/bloccit/branches{/branch}","tags_url":"https://api.github.com/repos/ckib16/bloccit/tags","blobs_url":"https://api.github.com/repos/ckib16/bloccit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckib16/bloccit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckib16/bloccit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckib16/bloccit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckib16/bloccit/statuses/{sha}","languages_url":"https://api.github.com/repos/ckib16/bloccit/languages","stargazers_url":"https://api.github.com/repos/ckib16/bloccit/stargazers","contributors_url":"https://api.github.com/repos/ckib16/bloccit/contributors","subscribers_url":"https://api.github.com/repos/ckib16/bloccit/subscribers","subscription_url":"https://api.github.com/repos/ckib16/bloccit/subscription","commits_url":"https://api.github.com/repos/ckib16/bloccit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckib16/bloccit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckib16/bloccit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckib16/bloccit/issues/comments/{number}","contents_url":"https://api.github.com/repos/ckib16/bloccit/contents/{+path}","compare_url":"https://api.github.com/repos/ckib16/bloccit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckib16/bloccit/merges","archive_url":"https://api.github.com/repos/ckib16/bloccit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckib16/bloccit/downloads","issues_url":"https://api.github.com/repos/ckib16/bloccit/issues{/number}","pulls_url":"https://api.github.com/repos/ckib16/bloccit/pulls{/number}","milestones_url":"https://api.github.com/repos/ckib16/bloccit/milestones{/number}","notifications_url":"https://api.github.com/repos/ckib16/bloccit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckib16/bloccit/labels{/name}","releases_url":"https://api.github.com/repos/ckib16/bloccit/releases{/id}","created_at":"2014-11-16T01:47:16Z","updated_at":"2015-01-11T03:22:18Z","pushed_at":"2015-01-11T04:06:05Z","git_url":"git://github.com/ckib16/bloccit.git","ssh_url":"git@github.com:ckib16/bloccit.git","clone_url":"https://github.com/ckib16/bloccit.git","svn_url":"https://github.com/ckib16/bloccit","homepage":null,"size":904,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ckib16:master","ref":"master","sha":"46aa945587bea318c30403cca01ea13aa4a5f298","user":{"login":"ckib16","id":2160186,"avatar_url":"https://avatars.githubusercontent.com/u/2160186?v=3","gravatar_id":"","url":"https://api.github.com/users/ckib16","html_url":"https://github.com/ckib16","followers_url":"https://api.github.com/users/ckib16/followers","following_url":"https://api.github.com/users/ckib16/following{/other_user}","gists_url":"https://api.github.com/users/ckib16/gists{/gist_id}","starred_url":"https://api.github.com/users/ckib16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckib16/subscriptions","organizations_url":"https://api.github.com/users/ckib16/orgs","repos_url":"https://api.github.com/users/ckib16/repos","events_url":"https://api.github.com/users/ckib16/events{/privacy}","received_events_url":"https://api.github.com/users/ckib16/received_events","type":"User","site_admin":false},"repo":{"id":26700380,"name":"bloccit","full_name":"ckib16/bloccit","owner":{"login":"ckib16","id":2160186,"avatar_url":"https://avatars.githubusercontent.com/u/2160186?v=3","gravatar_id":"","url":"https://api.github.com/users/ckib16","html_url":"https://github.com/ckib16","followers_url":"https://api.github.com/users/ckib16/followers","following_url":"https://api.github.com/users/ckib16/following{/other_user}","gists_url":"https://api.github.com/users/ckib16/gists{/gist_id}","starred_url":"https://api.github.com/users/ckib16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckib16/subscriptions","organizations_url":"https://api.github.com/users/ckib16/orgs","repos_url":"https://api.github.com/users/ckib16/repos","events_url":"https://api.github.com/users/ckib16/events{/privacy}","received_events_url":"https://api.github.com/users/ckib16/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckib16/bloccit","description":"My bloccit app created with Chris Beck","fork":false,"url":"https://api.github.com/repos/ckib16/bloccit","forks_url":"https://api.github.com/repos/ckib16/bloccit/forks","keys_url":"https://api.github.com/repos/ckib16/bloccit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckib16/bloccit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckib16/bloccit/teams","hooks_url":"https://api.github.com/repos/ckib16/bloccit/hooks","issue_events_url":"https://api.github.com/repos/ckib16/bloccit/issues/events{/number}","events_url":"https://api.github.com/repos/ckib16/bloccit/events","assignees_url":"https://api.github.com/repos/ckib16/bloccit/assignees{/user}","branches_url":"https://api.github.com/repos/ckib16/bloccit/branches{/branch}","tags_url":"https://api.github.com/repos/ckib16/bloccit/tags","blobs_url":"https://api.github.com/repos/ckib16/bloccit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckib16/bloccit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckib16/bloccit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckib16/bloccit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckib16/bloccit/statuses/{sha}","languages_url":"https://api.github.com/repos/ckib16/bloccit/languages","stargazers_url":"https://api.github.com/repos/ckib16/bloccit/stargazers","contributors_url":"https://api.github.com/repos/ckib16/bloccit/contributors","subscribers_url":"https://api.github.com/repos/ckib16/bloccit/subscribers","subscription_url":"https://api.github.com/repos/ckib16/bloccit/subscription","commits_url":"https://api.github.com/repos/ckib16/bloccit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckib16/bloccit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckib16/bloccit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckib16/bloccit/issues/comments/{number}","contents_url":"https://api.github.com/repos/ckib16/bloccit/contents/{+path}","compare_url":"https://api.github.com/repos/ckib16/bloccit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckib16/bloccit/merges","archive_url":"https://api.github.com/repos/ckib16/bloccit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckib16/bloccit/downloads","issues_url":"https://api.github.com/repos/ckib16/bloccit/issues{/number}","pulls_url":"https://api.github.com/repos/ckib16/bloccit/pulls{/number}","milestones_url":"https://api.github.com/repos/ckib16/bloccit/milestones{/number}","notifications_url":"https://api.github.com/repos/ckib16/bloccit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckib16/bloccit/labels{/name}","releases_url":"https://api.github.com/repos/ckib16/bloccit/releases{/id}","created_at":"2014-11-16T01:47:16Z","updated_at":"2015-01-11T03:22:18Z","pushed_at":"2015-01-11T04:06:05Z","git_url":"git://github.com/ckib16/bloccit.git","ssh_url":"git@github.com:ckib16/bloccit.git","clone_url":"https://github.com/ckib16/bloccit.git","svn_url":"https://github.com/ckib16/bloccit","homepage":null,"size":904,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/ckib16/bloccit/pulls/6"},"html":{"href":"https://github.com/ckib16/bloccit/pull/6"},"issue":{"href":"https://api.github.com/repos/ckib16/bloccit/issues/6"},"comments":{"href":"https://api.github.com/repos/ckib16/bloccit/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ckib16/bloccit/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ckib16/bloccit/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ckib16/bloccit/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ckib16/bloccit/statuses/1c800eb3562f36d53492515c3616d9b4cd96429b"}}}}